From: | Magnus Hagander <magnus(at)hagander(dot)net> |
---|---|
To: | Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [COMMITTERS] pgsql: Silence compiler warning about ignored return value. |
Date: | 2008-11-20 15:11:53 |
Message-ID: | 49257E39.1040902@hagander.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-hackers |
Heikki Linnakangas wrote:
> Magnus Hagander wrote:
>> Log Message:
>> -----------
>> Silence compiler warning about ignored return value. Our comment already
>> clearly stated that we are aware that we're ignoring it.
>
> I think the usual way is to call the function like:
>
> (void) function_with_return_value()
I tried that first, of course. gcc is too smart about that - it still
throws the warning in this case.
//Magnus
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2008-11-20 15:27:09 | Re: Re: [COMMITTERS] pgsql: Silence compiler warning about ignored return value. |
Previous Message | Heikki Linnakangas | 2008-11-20 15:08:31 | Re: [COMMITTERS] pgsql: Silence compiler warning about ignored return value. |
From | Date | Subject | |
---|---|---|---|
Next Message | Pavan Deolasee | 2008-11-20 15:15:21 | Re: How should pg_standby get over the gap of timeline? |
Previous Message | Heikki Linnakangas | 2008-11-20 15:08:31 | Re: [COMMITTERS] pgsql: Silence compiler warning about ignored return value. |