lots of unused variable warnings in assert-free builds

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема lots of unused variable warnings in assert-free builds
Дата
Msg-id 1326577998.31492.19.camel@vanquo.pezone.net
обсуждение исходный текст
Ответы Re: lots of unused variable warnings in assert-free builds  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
In builds without --enable-cassert (I guess not many developers use
those a lot), there are quite a few unused variable warnings.  These
usually hold some intermediate result that the assert checks later.  I
see that in some places our code already uses #ifdef
USE_ASSERT_CHECKING, presumably to hide similar issues.  But in most
cases using this would significantly butcher the code.  I found that
adding __attribute__((unused)) is cleaner.  Attached is a patch that
cleans up all the warnings I encountered.

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Dimitri Fontaine
Дата:
Сообщение: Re: Command Triggers
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: separate initdb -A options for local and host