Re: Re: [COMMITTERS] pgsql: Silence compiler warning about ignored return value. - Mailing list pgsql-hackers

From Grzegorz Jaskiewicz
Subject Re: Re: [COMMITTERS] pgsql: Silence compiler warning about ignored return value.
Date
Msg-id E58F9DD0-8035-428B-BE57-D050CDDF7580@pointblue.com.pl
Whole thread Raw
In response to Re: Re: [COMMITTERS] pgsql: Silence compiler warning about ignored return value.  (Peter Eisentraut <peter_e@gmx.net>)
List 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 by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: Re: [COMMITTERS] pgsql: Silence compiler warning about ignored return value.
Next
From: Tom Lane
Date:
Subject: Re: pg_upgrade: How to deal with toast