Skip to content

Commit 45aef9f

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 66aaabe commit 45aef9f

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ smgrtruncate(SMgrRelation reln, ForkNumber *forknum, int nforks,
706706
for (int i = 0; i < nforks; ++i)
707707
old_nblocks[i] = smgrnblocks(reln, forknum[i]);
708708

709-
return smgrtruncate2(reln, forknum, nforks, old_nblocks, nblocks);
709+
smgrtruncate2(reln, forknum, nforks, old_nblocks, nblocks);
710710
}
711711

712712
/*

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy