changeset 13283:7346ad38d6ae

canonicalize-lgpl: avoid compiler warning * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty declaration' / 'extraneous semicolon' warning with some compilers. Reported by Andreas Gruenbacher. Signed-off-by: Eric Blake <eblake@redhat.com>
author Eric Blake <eblake@redhat.com>
date Wed, 28 Apr 2010 10:13:24 -0600
parents 20adf2052520
children e08c8b78a796
files ChangeLog lib/canonicalize-lgpl.c
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-04-28  Eric Blake  <eblake@redhat.com>
+
+	canonicalize-lgpl: avoid compiler warning
+	* lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
+	declaration' / 'extraneous semicolon' warning with some compilers.
+	Reported by Andreas Gruenbacher.
+
 2010-04-28  Jim Meyering  <meyering@redhat.com>
 
 	init.sh: ensure a more reliable exit status when exiting via trap
--- a/lib/canonicalize-lgpl.c
+++ b/lib/canonicalize-lgpl.c
@@ -43,7 +43,7 @@
 # include <shlib-compat.h>
 #else
 # define SHLIB_COMPAT(lib, introduced, obsoleted) 0
-# define versioned_symbol(lib, local, symbol, version)
+# define versioned_symbol(lib, local, symbol, version) extern int dummy
 # define compat_symbol(lib, local, symbol, version)
 # define weak_alias(local, symbol)
 # define __canonicalize_file_name canonicalize_file_name