Re: Enable -Wstrict-prototypes and -Wold-style-definition by default
В списке pgsql-hackers по дате отправления:
| От | Peter Eisentraut |
|---|---|
| Тема | Re: Enable -Wstrict-prototypes and -Wold-style-definition by default |
| Дата | |
| Msg-id | 7bf60ab1-2b5d-4a77-93ce-815072a0a014@eisentraut.org обсуждение |
| Ответ на | Re: Enable -Wstrict-prototypes and -Wold-style-definition by default (Bertrand Drouvot <bertranddrouvot.pg@gmail.com>) |
| Ответы |
Re: Enable -Wstrict-prototypes and -Wold-style-definition by default
|
| Список | pgsql-hackers |
On 27.03.26 11:07, Bertrand Drouvot wrote: > That looks ok but I wonder if we should also add '-Werror=vla' to it ( > and remove it from common_warning_flags) to be in sync with what configure.ac > is doing: > > " > PGAC_PROG_CC_CFLAGS_OPT([-Werror=vla]) > # -Wvla is not applicable for C++ > " Hmm. This comment is not actually fully correct. With g++, you can write a VLA and it will work, and also -Wvla will warn about it. So we should actually add that option to C++ as well. (It is true that VLAs are not in standard C++, and g++ with -pedantic will also warn about it.)
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера