Re: enable fallthrough warnings on clang

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: enable fallthrough warnings on clang
Дата
Msg-id 2042830.1775572527@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: enable fallthrough warnings on clang  (Peter Eisentraut <peter@eisentraut.org>)
Список pgsql-hackers
Peter Eisentraut <peter@eisentraut.org> writes:
> On 06.04.26 23:31, Tom Lane wrote:
>> BF member ayu is failing said test:
>> ...
>> I don't know if it's worth catering to this extremely old
>> clang version ...

> But AFAICT, clang 5 and older are completely broken in this regard, 
> because they react to the presence of [[clang::fallthrough]] with a 
> syntax error ("error: expected expression").  Not even clang's own 
> example code[0] works.

Hah, so we'd make it worse not better by adding
[[clang::fallthrough]].  Let's leave well enough alone then.

            regards, tom lane



В списке pgsql-hackers по дате отправления: