From: Eric Blake Date: Wed, 28 Apr 2010 16:13:24 +0000 (-0600) Subject: canonicalize-lgpl: avoid compiler warning X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b08ed06f030a482b95752c054ac6d5db32b28c1;p=pspp 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 --- diff --git a/ChangeLog b/ChangeLog index 1191a675e0..016a9e0540 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-04-28 Eric Blake + + 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 init.sh: ensure a more reliable exit status when exiting via trap diff --git a/lib/canonicalize-lgpl.c b/lib/canonicalize-lgpl.c index 480a132566..939e3f1149 100644 --- a/lib/canonicalize-lgpl.c +++ b/lib/canonicalize-lgpl.c @@ -43,7 +43,7 @@ # include #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