From: Alex Riesen Date: Tue, 01 Sep 2009 06:30:38 GMT Subject: Re: [PATCH] fast-import.c: Silence build warning Message-ID: <81b0412b0908312330t3135d033o14a6cb73797edf18@mail.gmail.com> In-Reply-To: On Tue, Sep 1, 2009 at 01:55, Michael Wookey wrote: >> Otherwise a clever compiler has every right to complain "the variable >> unused is assigned but never used." > >  I get no other warnings, so does that make gcc less than clever? ;-) It only does what it is instructed to do: the function is annotated with warn_unused_result attribute. What really is annoying is someones choice of the functions to annotate.