From: Lennart Poettering Date: Sun, 23 Aug 2009 05:19:26 +0000 (+0200) Subject: Shut up prototype warnings with recent GCC and -Wstrict-prototypes. X-Git-Tag: v2.2.7b~68 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=d1de1d4adaadf5b709c646862e7f649bb9179aea;p=thirdparty%2Flibtool.git Shut up prototype warnings with recent GCC and -Wstrict-prototypes. * libltdl/config/ltmain.m4sh (func_generate_dlsyms): Use recent GCC's diagnostic pragma to override a -Wstrict-prototypes setting for the symbol list code. * THANKS: Update. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index 2da01a284..e38a60892 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2009-08-23 Lennart Poettering (tiny change) + + Shut up prototype warnings with recent GCC and -Wstrict-prototypes. + * libltdl/config/ltmain.m4sh (func_generate_dlsyms): Use recent + GCC's diagnostic pragma to override a -Wstrict-prototypes + setting for the symbol list code. + * THANKS: Update. + 2009-08-23 Ralf Wildenhues Remove __oline__ from macros, for less spurious configure diffs. diff --git a/THANKS b/THANKS index 70e299de1..e976ba876 100644 --- a/THANKS +++ b/THANKS @@ -110,6 +110,7 @@ John R. Cary cary@txcorp.com John Wolfe jlw@sco.com Joseph Beckenbach III jrb3@best.com + Lennart Poettering lennart@poettering.net Karl Berry karl@freefriends.org Kenneth Albanowski kjahds@kjahds.com Kevin Ryde user42@zip.com.au diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh index ebd3909c3..9e4cfdb79 100644 --- a/libltdl/config/ltmain.m4sh +++ b/libltdl/config/ltmain.m4sh @@ -1946,6 +1946,10 @@ func_generate_dlsyms () extern \"C\" { #endif +#if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4)) +#pragma GCC diagnostic ignored \"-Wstrict-prototypes\" +#endif + /* External symbol declarations for the compiler. */\ "