Re: Add "-Wimplicit-fallthrough" to default flags (was Re: pgsql:Support FETCH FIRST WITH TIES)

Поиск
Список
Период
Сортировка
От Mark Dilger
Тема Re: Add "-Wimplicit-fallthrough" to default flags (was Re: pgsql:Support FETCH FIRST WITH TIES)
Дата
Msg-id C719E70C-6066-4E8C-8659-A01D758DC88E@enterprisedb.com
обсуждение исходный текст
Ответ на Re: Add "-Wimplicit-fallthrough" to default flags (was Re: pgsql: Support FETCH FIRST WITH TIES)  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Add "-Wimplicit-fallthrough" to default flags (was Re: pgsql:Support FETCH FIRST WITH TIES)
Список pgsql-hackers

> On Apr 12, 2020, at 7:55 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> Poking around in the archives, it seems like the only previous formal
> proposal to add -Wimplicit-fallthrough was in the context of a much
> more aggressive proposal to make a lot of non-Wall warnings into
> errors [1], which people did not like.

That was from me.

> The only more-restrictive alternative, short of disabling
> the comments altogether, is
>
>           * -Wimplicit-fallthrough=4 case sensitively matches one of the
>               following regular expressions:
>
>               *<"-fallthrough">
>               *<"@fallthrough@">
>               *<"lint -fallthrough[ \t]*">
>               *<"[ \t]*FALLTHR(OUGH|U)[ \t]*">
>
> Thoughts?

Naturally, I'm +1 for this.

—
Mark Dilger
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company






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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: pg_validatebackup -> pg_verifybackup?
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: pg_validatebackup -> pg_verifybackup?