This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Marking of functions with attributes like __wur
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Paul Eggert <eggert at cs dot ucla dot edu>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Wed, 11 Apr 2012 14:30:43 -0700 (PDT)
- Subject: Re: Marking of functions with attributes like __wur
- References: <4F85D4B0.6040409@suse.com><4F85F314.1050909@cs.ucla.edu>
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