Re: additional GCC warning flags

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: additional GCC warning flags
Дата
Msg-id 200410181937.35410.peter_e@gmx.net
обсуждение исходный текст
Ответ на additional GCC warning flags  (Neil Conway <neilc@samurai.com>)
Список pgsql-patches
Neil Conway wrote:
> This patch adds code to "configure" to check if GCC supports the
> following warning flags: -Wdeclaration-after-statement (GCC 3.4+),
> -Wold-style-definition (GCC 3.4+), and -Wendif-labels (GCC 3.3+). Any
> of these options that are supported by $CC are added to $CFLAGS.

Can't you write one macro that takes the option to be tested as
argument?  For example like
PGAC_PROG_CC_WARNING([-Wmissing-declarations]).

--
Peter Eisentraut
http://developer.postgresql.org/~petere/


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Win32 psql fix
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: pg_config-zh_TW.po for 8.0