This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/30426] Warning when using strndup



------- Comment #2 from pinskia at gcc dot gnu dot org  2007-01-10 20:38 -------
Not a bug, strndup is a GNU (glibc) extension.  You have to use -D_GNU_SOURCE
when compiling.
The warning messages are correct as there is no prototype for strndup.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30426


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]