Skip to content

Commit 049c8cb

Browse files
committed
Fix C error reported by Oracle compiler.
Commit 66aaabe (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
1 parent c53d90b commit 049c8cb

File tree

1 file changed

+1
-1
lines changed
  • src/backend/storage/smgr

1 file changed

+1
-1
lines changed

src/backend/storage/smgr/smgr.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ smgrtruncate(SMgrRelation reln, ForkNumber *forknum, int nforks,
599599
for (int i = 0; i < nforks; ++i)
600600
old_nblocks[i] = smgrnblocks(reln, forknum[i]);
601601

602-
return smgrtruncate2(reln, forknum, nforks, old_nblocks, nblocks);
602+
smgrtruncate2(reln, forknum, nforks, old_nblocks, nblocks);
603603
}
604604

605605
/*

0 commit comments

Comments
 (0)