Re: Re: [COMMITTERS] pgsql: Silence compiler warning about ignored return value.

Поиск
Список
Период
Сортировка
От Grzegorz Jaskiewicz
Тема Re: Re: [COMMITTERS] pgsql: Silence compiler warning about ignored return value.
Дата
Msg-id E58F9DD0-8035-428B-BE57-D050CDDF7580@pointblue.com.pl
обсуждение исходный текст
Ответ на Re: Re: [COMMITTERS] pgsql: Silence compiler warning about ignored return value.  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
On 2008-11-20, at 15:29, Peter Eisentraut wrote:
>
> Well, the warning is explicitly put in there for this specific  
> function because you are supposed to process the return value.  I'm  
> sure a more smarter compiler would even warn "variable is assigned a  
> value that is never used". ;-)  (Note that gcc in general doesn't  
> work about unused return values, only for those functions that glibc  
> explicitly marks as candidates.)

afaik you need to use -Wall and -O3 to get that type of warning with 4.3



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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: Re: [COMMITTERS] pgsql: Silence compiler warning about ignored return value.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pg_upgrade: How to deal with toast