Wolfram Sang <[email protected]> writes:

>>  Is there a simpler way of expressing this poblem in a way so this
>> example would only yield the line "bar();"?
>
> Can't you just annotate the function with 'warn_unused_result' and let
> gcc do the job? (I'd think most other compilers can do this, too)

 I could, at least for the few projects we already have ported away
from SCO OpenSerbver, and the rather peculiar toolchain we have there.

 But then I would have to do something by hand in each case. And I
would rather have an automated way of adding a check for te return
value.

-- 
/Wegge

Leder efter redundant peering af dk.*,linux.debian.*

_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to