Closed GoogleCodeExporter closed 9 years ago
I haven't wanted to force these warnings on everybody, they are more about
verifying that internally every error is properly handled.
I'm not sure if putting these in the header file would be a good idea. I
haven't seen any other C library do such a thing.
Original comment by Petteri.Aimonen
on 18 Mar 2014 at 4:39
Currently it is quite difficult to suppress the warn_unused_result warning in
GCC. The normal (void)function() approach does not work.
Therefore defining these in the public header could cause false positives that
would be difficult to fix. Lint or splint can be used to get warnings about the
unused return values.
Original comment by Petteri.Aimonen
on 2 Apr 2014 at 6:31
Original issue reported on code.google.com by
bernhard...@gmail.com
on 18 Mar 2014 at 2:30