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

From Peter Eisentraut
Subject Re: enable fallthrough warnings on clang
Date
Msg-id 955ddaa3-d6e8-4d87-a368-ef9f25960d4e@eisentraut.org
Whole thread Raw
In response to Re: enable fallthrough warnings on clang  (Jelte Fennema-Nio <postgres@jeltef.nl>)
List pgsql-hackers
On 20.01.26 16:03, Jelte Fennema-Nio wrote:
> 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.

I agree.  I will make that change.




pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Fix accidentally cast away qualifiers
Next
From: Dilip Kumar
Date:
Subject: Re: Skipping schema changes in publication