Re: [COMMITTERS] pgsql: Silence compiler warning about ignored return value.
| От | Magnus Hagander |
|---|---|
| Тема | Re: [COMMITTERS] pgsql: Silence compiler warning about ignored return value. |
| Дата | |
| Msg-id | 49257E39.1040902@hagander.net обсуждение исходный текст |
| Ответ на | Re: [COMMITTERS] pgsql: Silence compiler warning about ignored return value. (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>) |
| Ответы |
Re: Re: [COMMITTERS] pgsql: Silence compiler warning about ignored return value.
Re: Re: [COMMITTERS] pgsql: Silence compiler warning about ignored return value. Re: Re: [COMMITTERS] pgsql: Silence compiler warning about ignored return value. |
| Список | 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
В списке pgsql-hackers по дате отправления: