Re: silence GCC4 warning

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: silence GCC4 warning
Дата
Msg-id 4409.1120485970@sss.pgh.pa.us
обсуждение исходный текст
Ответ на silence GCC4 warning  (Neil Conway <neilc@samurai.com>)
Ответы Re: silence GCC4 warning
Список pgsql-patches
Neil Conway <neilc@samurai.com> writes:
> This patch silences a GCC 4.0 warning about a potentially-uninitialized
> variable in pl_comp.c,

AFAICT, gcc4's default behavior is to warn about

    int    foo;

    somefunc(&foo);

which unfortunately is a very common usage that I'm not real thrilled
about having to fix every occurrence of.  I've been meaning to look into
whether they provided a pragma or something to mark function parameters
as output-only, so that this message could be suppressed where
appropriate without adding a lot of useless initializations.

In the meantime, I don't see the point of patching just one place.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: User's exception plpgsql
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Dbsize backend integration