Re: new compiler warnings

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: new compiler warnings
Дата
Msg-id 3542.1318944735@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: new compiler warnings  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: new compiler warnings
Re: new compiler warnings
Список pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> It is a pity we can't just tell the compiler to turn off the warning in 
> a particular case.

I haven't tested, but won't an explicit cast to void silence the
warning?
(void) fwrite(...);

There are places, notably the calls in elog.c, where ignoring write
failures is the right thing.  I think that what Kevin was on about
was something else entirely, namely whether we need to retry writes
to disk.  I would hope that we're not simply not bothering to check
in any cases where it matters.
        regards, tom lane


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: new compiler warnings
Следующее
От: Robert Haas
Дата:
Сообщение: Re: [v9.2] make_greater_string() does not return a string in some cases