Re: lots of unused variable warnings in assert-free builds
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: lots of unused variable warnings in assert-free builds |
| Дата | |
| Msg-id | 8043.1327425176@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: lots of unused variable warnings in assert-free builds (Robert Haas <robertmhaas@gmail.com>) |
| Ответы |
Re: lots of unused variable warnings in assert-free builds
|
| Список | pgsql-hackers |
Robert Haas <robertmhaas@gmail.com> writes:
> Spraying the code with __attribute__((unused)) is somewhat undesirable
> because it could mask a failure to properly initialize the variable in
> an assert-enabled build.
Ouch. Is it really true that __attribute__((unused)) disables detection
of use of uninitialized variables? That would be nasty, and it's not
obvious to me why it should need to work like that. But if it is true,
then I agree that that makes this approach not too tenable.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера