Marking of functions with attributes like __wur

Roland McGrath roland@hack.frob.com
Wed Apr 11 21:31:00 GMT 2012


I'm not sure the "security problem or always bug" predicate is really the
appropriate one.  Warnings exist to help programmers.  So "more likely to
be unintended than intended" might be a reasonable predicate.  OTOH, __wur
doesn't make it easy to suppress the warning explicitly with something like
a (void) cast, which IMHO would be more reasonable behavior.

Certainly strtoll and strtoimax should be completely consistent in all
aspects of their APIs aside from the actual integer type used.


Thanks,
Roland



More information about the Libc-alpha mailing list