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 | 29618.1332270242@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: lots of unused variable warnings in assert-free builds (Peter Eisentraut <peter_e@gmx.net>) |
| Ответы |
Re: lots of unused variable warnings in assert-free builds
|
| Список | pgsql-hackers |
Peter Eisentraut <peter_e@gmx.net> writes:
> As you can see, pgindent adds whitespace on top of #ifdef
> USE_ASSERT_CHECKING, and messes up the vertical alignment of variable
> definitions that contain extra attributes.
Hm. I bet it thinks that PG_USED_FOR_ASSERTS_ONLY is the variable name,
which means that the behavior might be more exciting for multi-word type
names (for instance "struct foo" or "volatile int *". Could you check
a few cases like that?
> All things considered, I like the PG_USED_FOR_ASSERTS_ONLY solution best.
I agree, unless the more complicated cases go further off the rails.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера