Re: gcc 13 warnings

Поиск
Список
Период
Сортировка
От Aleksander Alekseev
Тема Re: gcc 13 warnings
Дата
Msg-id CAJ7c6TPQXBVb0DJRG5ANEq6T37vCmtqm5=uDx52+7Jvf9+un+w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: gcc 13 warnings  (Andres Freund <andres@anarazel.de>)
Список 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 по дате отправления:

Предыдущее
От: Sutou Kouhei
Дата:
Сообщение: Re: Wrong results with grouping sets
Следующее
От: Rafia Sabih
Дата:
Сообщение: Re: Things I don't like about \du's "Attributes" column