Re: Using -Wshadow

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: Using -Wshadow
Дата
Msg-id 871xrxsjmd.fsf@mailbox.samurai.com
обсуждение исходный текст
Ответ на Re: Using -Wshadow  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> writes:
> Neil Conway <neilc@samurai.com> writes:
>> Currently, enabling this for the PostgreSQL tree produces a lot of
>> warnings.
>
> How many is "a lot"?

Maybe a couple hundred or so, but most of the warnings are derived
from a few globals with common names -- I would guess it won't be too
much trouble to fix...

> What are the odds that this would produce spurious warnings on some
> platforms due to shadowing of platform-specific functions or
> globals?

No idea -- I'm content to jump that bridge (e.g. by removing -Wshadow
if necessary) when we come to it.

Ok, I'll work on this and submit a patch to -patches when I'm
done. I'll leave the work on the other warning flags you mentioned for
someone else.

-Neil



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Considerations for lib64
Следующее
От: Peter Eisentraut
Дата:
Сообщение: A rough roadmap for internationalization fixes