Re: attribute warn_unused_result

From: Arjan van de Ven
Date: Tue Sep 07 2004 - 07:43:09 EST


On Tue, 2004-09-07 at 14:23, Con Kolivas wrote:
> Gcc3.4.1 has recently been complaining of a number of unused results
> from function with attribute warn_unused_result set. I'm not sure of how
> you want to tackle this so I'm avoiding posting patches. Should we
> remove the attribute (seems the likely option) or set some dummy
> variable (sounds stupid now that I ask it).

that attribute is supposed to only be set for functions you really ought
to check the result for.... so how about checking/using the result ?

Attachment: signature.asc
Description: This is a digitally signed message part