Re: gcc 13 warnings - Mailing list pgsql-hackers

From Aleksander Alekseev
Subject Re: gcc 13 warnings
Date
Msg-id CAJ7c6TPQXBVb0DJRG5ANEq6T37vCmtqm5=uDx52+7Jvf9+un+w@mail.gmail.com
Whole thread Raw
In response to Re: gcc 13 warnings  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
Hi,

>         /*
>          * Prevent spurious warning due to compiler not realizing
>          * VARATT_IS_EXTERNAL_NON_EXPANDED() branch in assign_simple_var() isn't
>          * reachable due to "found" being byvalue.
>          */
>         if (var->datatype->typlen != 1)
>                 pg_unreachable();
>
> I'm somewhat inclined to think it'd be worth adding something along those
> lines to avoid this warning ([1]).

IMO we shouldn't allow warnings to appear in release builds, even
harmless ones. Otherwise we start ignoring them and will skip
something important one day. So I think we should do this.

-- 
Best regards,
Aleksander Alekseev



pgsql-hackers by date:

Previous
From: Sutou Kouhei
Date:
Subject: Re: Wrong results with grouping sets
Next
From: Rafia Sabih
Date:
Subject: Re: Things I don't like about \du's "Attributes" column