[PATCH] Add warning_decl and error_decl attributes

Andrew Pinski pinskia@gmail.com
Mon Sep 10 15:41:00 GMT 2007

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.


More information about the Gcc-patches mailing list