aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2025-01-08 16:54:45 +1300
committerThomas Munro <tmunro@postgresql.org>2025-01-08 17:03:25 +1300
commit9defaaa1da60372f687e707c20c12aea713e1741 (patch)
treeec3c65f55f6809018996509ed9646c8c2a6205e2 /src
parentc957d7444fccb3c61b5f00908ef91aba012c683b (diff)
downloadpostgresql-9defaaa1da60372f687e707c20c12aea713e1741.tar.gz
postgresql-9defaaa1da60372f687e707c20c12aea713e1741.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/backend/storage/smgr/smgr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/storage/smgr/smgr.c b/src/backend/storage/smgr/smgr.c
index 152545c3020..f203c2e9efb 100644
--- a/src/backend/storage/smgr/smgr.c
+++ b/src/backend/storage/smgr/smgr.c
@@ -660,7 +660,7 @@ smgrtruncate(SMgrRelation reln, ForkNumber *forknum, int nforks,
for (int i = 0; i < nforks; ++i)
old_nblocks[i] = smgrnblocks(reln, forknum[i]);
- return smgrtruncate2(reln, forknum, nforks, old_nblocks, nblocks);
+ smgrtruncate2(reln, forknum, nforks, old_nblocks, nblocks);
}
/*