canonicalize-lgpl: avoid compiler warning
authorEric Blake <eblake@redhat.com>
Wed, 28 Apr 2010 16:13:24 +0000 (10:13 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 28 Apr 2010 16:16:29 +0000 (10:16 -0600)
* 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>
ChangeLog
lib/canonicalize-lgpl.c

index 1191a67..016a9e0 100644 (file)
--- 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
index 480a132..939e3f1 100644 (file)
@@ -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