Using -Wshadow

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Using -Wshadow
Дата
Msg-id 877k1psmpf.fsf@mailbox.samurai.com
обсуждение исходный текст
Ответы Re: Using -Wshadow
Re: Using -Wshadow
Список pgsql-hackers
GCC supports the -Wshadow command-line option:
      -Wshadow          Warn whenever a local variable shadows another local          variable, parameter or global
variableor whenever a          built-in function is shadowed.
 

Currently, enabling this for the PostgreSQL tree produces a lot of
warnings. Would anyone object if I corrected these usages of a
shadowed local variable, and then enabled this warning flag for
standard GCC builds? (as is currently done for -Wmissing-prototypes,
-Wmissing-declarations, and -Wall).

If there are any other GCC warning flags anyone else feels would be
useful, let me know.

-Neil



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

Предыдущее
От: ohp@pyrenet.fr
Дата:
Сообщение: How can I avoid that
Следующее
От: Tom Lane
Дата:
Сообщение: Re: CVS HEAD is broken