From e0c817e5108fd6d1ac19defac06d8d16fd22426b Mon Sep 17 00:00:00 2001 From: Philip Allison Date: Tue, 15 Jun 2010 20:09:48 +0200 Subject: [PATCH] Avoid GCC -Wall compiler warning in dlopen self test. * libltdl/m4/libtool.m4 (_LT_TRY_DLOPEN_SELF): Fix unused variable warning in test program. * THANKS: Update. Signed-off-by: Ralf Wildenhues --- ChangeLog | 7 +++++++ THANKS | 1 + libltdl/m4/libtool.m4 | 4 ++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a17d9aa6f..bfa340c39 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-06-15 Philip Allison (tiny change) + + Avoid GCC -Wall compiler warning in dlopen self test. + * libltdl/m4/libtool.m4 (_LT_TRY_DLOPEN_SELF): Fix unused + variable warning in test program. + * THANKS: Update. + 2010-06-15 Ralf Wildenhues Fix cleaning of uninstalled w32 shell wrapper in subdirs. diff --git a/THANKS b/THANKS index 08445f1a8..8a866a407 100644 --- a/THANKS +++ b/THANKS @@ -145,6 +145,7 @@ Peter Fritzsche peter.fritzsche@gmx.de Peter Jeremy peterjeremy@optushome.com.au Peter Kjellerstedt peter.kjellerstedt@axis.com + Philip Allison philip.allison@smoothwall.net Rainer Emrich r.emrich@de.tecosim.com Rainer Orth ro@TechFak.Uni-Bielefeld.DE Rainer Tammer tammer@tammer.net diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4 index 22924a86f..d35aab0d1 100644 --- a/libltdl/m4/libtool.m4 +++ b/libltdl/m4/libtool.m4 @@ -1658,10 +1658,10 @@ else /* When -fvisbility=hidden is used, assume the code has been annotated correspondingly for the symbols needed. */ #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) -void fnord () __attribute__((visibility("default"))); +int fnord () __attribute__((visibility("default"))); #endif -void fnord () { int i=42; } +int fnord () { return 42; } int main () { void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); -- 2.47.3