This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Add warning_decl and error_decl attributes
On 9/10/07, Jakub Jelinek <jakub@redhat.com> wrote:
> warning_decl is similar to error_decl, but it prints a warning
> instead of error. It is useful e.g. for glibc swapped memset arguments
> warning. Currently glibc uses
> __warndecl (__warn_memset_zero_len,
> "memset used with constant zero length parameter; this could be due to transposed parameters");
Except I will make a mention, it is wrong for glibc (or GCC) warning
about this.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16794
--Pinski