Re: Windows vs C99 (was Re: C99 compliance for src/port/snprintf.c)
В списке pgsql-hackers по дате отправления:
| От | David Steele |
|---|---|
| Тема | Re: Windows vs C99 (was Re: C99 compliance for src/port/snprintf.c) |
| Дата | |
| Msg-id | 11cd0aa8-d3a2-076e-4e33-d084d4e9bd6f@pgmasters.net обсуждение |
| Ответ на | Re: Windows vs C99 (was Re: C99 compliance for src/port/snprintf.c) (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>) |
| Список | pgsql-hackers |
On 8/22/18 10:56 AM, Peter Eisentraut wrote: > On 22/08/2018 14:02, Andres Freund wrote: >> If we agree on that, I'm going to propose a patch that includes: >> - relevant cleanups to configure >> - adapts sources.sgml to refer to C99 instead of C89 >> - add some trivial conversions to for(int i;;) and struct initializers, >> so the relevant old animals fail >> - adds a configure check to enable errors with vla usage (-Werror=vla) > > sounds good Sounds good to me. > >> - do we want to make declarations at arbitrary points errors? It's >> already a warning currently. > > While there are legitimate criticisms, it's a standard feature in C, > C++, and many other languages, so I don't see what we'd gain by fighting it. +1.= -- -David david@pgmasters.net
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера