Re: [PATCH] Compile without warning with gcc's -Wtype-limits, -Wempty-body
В списке pgsql-hackers по дате отправления:
| От | Peter Eisentraut |
|---|---|
| Тема | Re: [PATCH] Compile without warning with gcc's -Wtype-limits, -Wempty-body |
| Дата | |
| Msg-id | 1358213945.401.3.camel@vanquo.pezone.net обсуждение |
| Ответ на | [PATCH] Compile without warning with gcc's -Wtype-limits, -Wempty-body (Andres Freund <andres@2ndquadrant.com>) |
| Ответы |
Re: [PATCH] Compile without warning with gcc's
-Wtype-limits, -Wempty-body
|
| Список | pgsql-hackers |
On Tue, 2013-01-15 at 00:29 +0100, Andres Freund wrote: > Independently from this patch, should we add -Wtype-limits to the > default parameters? I think we have had a discussion along this line before. I am against fixing warnings from this option, because those changes would hide errors if a variable's type changed from signed to unsigned or vice versa, which could happen because of refactoring or it might be dependent on system headers. FWIW, clang has the same warning on by default. There, it's called -Wtautological-compare. I'm less concerned about -Wempty-body, but I can't see the practical use either way.
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера