bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ///usr/include/stdlib.h:617: warning: '__malloc__' attribute ignored


From: Ben Pfaff
Subject: Re: ///usr/include/stdlib.h:617: warning: '__malloc__' attribute ignored
Date: Mon, 19 Feb 2007 15:48:47 -0800
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

Bruno Haible <address@hidden> writes:

> I'm applying this:
>
> 2007-02-19  Bruno Haible  <address@hidden>
>
>       * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
>       warnings.
>       Reported by Joel E. Denny <address@hidden> via Paul Eggert.

Would it be possible to apply a similar fix to string_.h?  Under
mingw, I see the following warnings when compiling a file that
just contains the single line "#include <string.h>":

    address@hidden:~/pspp/mingw/pspp/_mingw/gl(0)$ i586-mingw32msvc-gcc -c -I. 
-Drestrict=  -Wmissing-prototypes include-string.c 
    In file included from ./string.h:23,
                     from include-string.c:1:
    
///usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/string.h:97:
 warning: no previous prototype for 'strcasecmp'
    
///usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/string.h:103:
 warning: no previous prototype for 'strncasecmp'
    address@hidden:~/pspp/mingw/pspp/_mingw/gl(0)$ 

Sorry about the overlong lines.
-- 
Ben Pfaff 
address@hidden
http://benpfaff.org





reply via email to

[Prev in Thread] Current Thread [Next in Thread]