Re: miniscule compiler barf in pg_ctl.c

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: miniscule compiler barf in pg_ctl.c
Дата
Msg-id 28619.1090460774@sss.pgh.pa.us
обсуждение исходный текст
Ответ на miniscule compiler barf in pg_ctl.c  ("Dann Corbit" <DCorbit@connx.com>)
Список pgsql-hackers
"Dann Corbit" <DCorbit@connx.com> writes:
>   default:
>     ;  /* <<<<<<<<<< Just a semicolon added here <<<<<<<<<<<< */
>    /* assert(false); */
>  }

Personally I prefer writing
default:    break;

Switch branches that don't have break or return at the end are trouble
waiting to happen, compiler glitches or no ...

Patched, thanks!
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Missing header in zic.c?
Следующее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: Why we really need timelines *now* in PITR