bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] canonicalize-lgpl: avoid compiler warning


From: Eric Blake
Subject: [PATCH] canonicalize-lgpl: avoid compiler warning
Date: Wed, 28 Apr 2010 10:18:06 -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 <address@hidden>
---

On further thought, here's an even smaller patch that does the same
thing, and makes the diff to glibc less painful to review.

 ChangeLog               |    7 +++++++
 lib/canonicalize-lgpl.c |    2 +-
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 1191a67..016a9e0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-04-28  Eric Blake  <address@hidden>
+
+       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  <address@hidden>

        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 480a132..939e3f1 100644
--- 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
-- 
1.6.6.1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]