Re: enable fallthrough warnings on clang - Mailing list pgsql-hackers

From Jelte Fennema-Nio
Subject Re: enable fallthrough warnings on clang
Date
Msg-id CAGECzQTs7qXSs8ztAFHCN=KB8SA_zDxO8CZ5+zBwq7zVOXbKKg@mail.gmail.com
Whole thread Raw
In response to enable fallthrough warnings on clang  (Peter Eisentraut <peter@eisentraut.org>)
Responses Re: enable fallthrough warnings on clang
List pgsql-hackers
On Tue, 20 Jan 2026 at 12:16, Peter Eisentraut <peter@eisentraut.org> wrote:
> So my proposal is that we wrap the appropriate attribute into a
> pg_fallthrough macro, and replace the current comments with that.

All looks okay to me. The only thing that stood out is that it checks
for C++ with __cpp_attributes instead of __cplusplus. Is it really
worth using this more specific attribute? Given that we're already
requiring C++11 and afaict all C++11 compilers should support the
general notion of attributes.



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Remove more leftovers of AIX support
Next
From: Álvaro Herrera
Date:
Subject: Re: file_fdw: Support multi-line HEADER option.