add -Wlogical-op to standard compiler options?

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема add -Wlogical-op to standard compiler options?
Дата
Msg-id 1352960230.19890.3.camel@vanquo.pezone.net
обсуждение исходный текст
Ответы Re: add -Wlogical-op to standard compiler options?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
I think it might be worth adding -Wlogical-op to the standard warning
options (for supported compilers, determined by configure test).

`-Wlogical-op'    Warn about suspicious uses of logical operators in expressions.    This includes using logical
operatorsin contexts where a bit-wise    operator is likely to be expected.
 

In addition to what it says there, it appears to warn about illogical
combinations of < and >.  I have been using it locally for a while
without problems.  We have already found a couple of bugs this way.




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

Предыдущее
От: Shigeru Hanada
Дата:
Сообщение: Re: Move postgresql_fdw_validator into dblink
Следующее
От: Darren Duncan
Дата:
Сообщение: feature proposal - triggers by semantics