mirror of
https://github.com/postgres/postgres.git
synced 2025-05-20 00:03:14 -04:00
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
This commit is contained in:
parent
66aaabe7a1
commit
45aef9f6bb
@ -706,7 +706,7 @@ smgrtruncate(SMgrRelation reln, ForkNumber *forknum, int nforks,
|
|||||||
for (int i = 0; i < nforks; ++i)
|
for (int i = 0; i < nforks; ++i)
|
||||||
old_nblocks[i] = smgrnblocks(reln, forknum[i]);
|
old_nblocks[i] = smgrnblocks(reln, forknum[i]);
|
||||||
|
|
||||||
return smgrtruncate2(reln, forknum, nforks, old_nblocks, nblocks);
|
smgrtruncate2(reln, forknum, nforks, old_nblocks, nblocks);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user