]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix C error reported by Oracle compiler.
authorThomas Munro <tmunro@postgresql.org>
Wed, 8 Jan 2025 03:54:45 +0000 (16:54 +1300)
committerThomas Munro <tmunro@postgresql.org>
Wed, 8 Jan 2025 04:14:15 +0000 (17:14 +1300)
commit417d41c658b30bbfe8ef9db624e4a8125e6225d1
tree4ef089a047c3f3ee4dd9b4fb8ba6e55a79df07ce
parenta786cf04df767e007069e6490734b21ff6a0418e
Fix C error reported by Oracle compiler.

Commit 66aaabe7 (branches 13 - 17 only) was not acceptable to the Oracle
Developer Studio compiler on build farm animal wrasse.  It accidentally
used a C++ style return statement to wrap a void function.  None of the
usual compilers complained, but it is right, that is not allowed in C.
Fix.

Reported-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/Z33vgfVgvOnbFLN9%40paquier.xyz
src/backend/storage/smgr/smgr.c