CI cpluspluscheck failures
Hi,
The CompilerWarnings cspluspluscheck started failing recently.
1. LLVM library version issue. See commit message for details.
2. pg_verify_backup.h now uses simplehash.h, which references
pg_fatal(), which nobody declared.
I'm not sure why the first one started happening at the commit
(aa2d6b15) that caused the second one, I feel like I'm missing
something...
https://github.com/postgres/postgres/commits/master/
Anyway, these patches turn it green for me. Please see attached.
Attachments:
0001-ci-Fix-cpluspluscheck-failure-due-to-LLVM-warnings.patchtext/x-patch; charset=US-ASCII; name=0001-ci-Fix-cpluspluscheck-failure-due-to-LLVM-warnings.patchDownload+3-1
0002-ci-Placate-cpluspluscheck-about-pg_verifybackup.h.patchtext/x-patch; charset=US-ASCII; name=0002-ci-Placate-cpluspluscheck-about-pg_verifybackup.h.patchDownload+1-1
On Mon, Aug 19, 2024 at 12:10 AM Thomas Munro <thomas.munro@gmail.com> wrote:
I'm not sure why the first one started happening at the commit
(aa2d6b15) that caused the second one, I feel like I'm missing
something...
What I was missing is that the LLVM warnings were already present, but
not causing failures because they are "system" headers. So I'll go
and push the fix for aa2d6b15, and wait longer for comment on the LLVM
one which has been wrong, but green, for a while.
On Mon, Aug 19, 2024 at 1:30 AM Thomas Munro <thomas.munro@gmail.com> wrote:
On Mon, Aug 19, 2024 at 12:10 AM Thomas Munro <thomas.munro@gmail.com> wrote:
I'm not sure why the first one started happening at the commit
(aa2d6b15) that caused the second one, I feel like I'm missing
something...
Thanks, Thomas, for addressing the missing include.
Adding logging.h to the pg_verifybackup.h file makes it redundant in
pg_verifybackup.c. The attached patch proposes removing this redundant
include from pg_verifybackup.c, along with a few other unnecessary
includes.
Regards,
Amul