CI cpluspluscheck failures

Started by Thomas Munroover 2 years ago3 messageshackers
Jump to latest
#1Thomas Munro
thomas.munro@gmail.com

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.

https://cirrus-ci.com/task/5014011601747968

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
#2Thomas Munro
thomas.munro@gmail.com
In reply to: Thomas Munro (#1)
Re: CI cpluspluscheck failures

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.

#3Amul Sul
sulamul@gmail.com
In reply to: Thomas Munro (#2)
Re: CI cpluspluscheck failures

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

Attachments:

t50126_3
0001-Remove-unnecessary-include-statements.patchapplication/x-patch; name=0001-Remove-unnecessary-include-statements.patchDownload+0-4