]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Shut up prototype warnings with recent GCC and -Wstrict-prototypes.
authorLennart Poettering <lennart@poettering.net>
Sun, 23 Aug 2009 05:19:26 +0000 (07:19 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 23 Aug 2009 05:19:26 +0000 (07:19 +0200)
* 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 <Ralf.Wildenhues@gmx.de>
ChangeLog
THANKS
libltdl/config/ltmain.m4sh

index 2da01a284feb374a5120f6824bbc8ea9e92903fe..e38a60892769d0919f3576ced4ce1438c69d93b6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-08-23  Lennart Poettering  <lennart@poettering.net>  (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  <Ralf.Wildenhues@gmx.de>
 
        Remove __oline__ from macros, for less spurious configure diffs.
diff --git a/THANKS b/THANKS
index 70e299de1cd5a173d74e7581af8510773e075922..e976ba8768f43f0fddac1f2fa4aa783ae2c66a2e 100644 (file)
--- a/THANKS
+++ b/THANKS
   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
index ebd3909c346ade596f8c8201a503b63b4c7af49b..9e4cfdb79212bf95ddbc6f925d4872b91813dd19 100644 (file)
@@ -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. */\
 "