| От | Neil Conway |
|---|---|
| Тема | Re: additional GCC warning flags |
| Дата | |
| Msg-id | 1098167923.1113.269.camel@localhost.localdomain обсуждение исходный текст |
| Ответ на | Re: additional GCC warning flags (Neil Conway <neilc@samurai.com>) |
| Ответы |
Re: additional GCC warning flags
Re: additional GCC warning flags |
| Список | pgsql-patches |
On Tue, 2004-10-19 at 11:59, Neil Conway wrote: > -Wpointer-arith might be worth enabling. I'll add it to the GCC CFLAGS > in the next patch I send in. Attached is a revised patch. Changes: - add -Wpointer-arith to the default CFLAGS when using GCC - add an AC macro AC_PROG_CC_CFLAGS_OPT that checks if $CC supports the specified command-line option and adds it to the CFLAGS if it does - replace the hard-coded test for -fno-strict-aliasing with AC_PROG_CC_CFLAGS, and use AC_PROG_CC_CFLAGS to check for -Wendif-labels, -Wdeclaration-after-statement, and -Wold-style-definition Barring any objections, I will apply this to CVS tomorrow. BTW, since we're on the topic of compiler options, is there a reason we don't use -g3 with GCC when --enable-debug is specified? It seems worth using to me. -Neil
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера