[Top][All Lists]

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

PATCH: numerous warnings from gnulib header files.

From: John Darrington
Subject: PATCH: numerous warnings from gnulib header files.
Date: Wed, 6 Feb 2013 09:13:12 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

Using gcc 4.4.5 I get *tons* of  warnings from gnulib headers:  Eg:

In file included from ./SOURCE/src/libpspp/argv-parser.c:26:
./SOURCE/gl/xalloc.h:176: error: no previous prototype for 'x2nrealloc'

Apparently this doesn't happen on gcc 4.7.2

The following patch fixes the problem for me.  I don't know if the conditionals
are correct for other compiler versions.

diff --git a/m4/extern-inline.m4 b/m4/extern-inline.m4
index 5880d4f..ca75452 100644
--- a/m4/extern-inline.m4
+++ b/m4/extern-inline.m4
@@ -26,7 +26,7 @@ AC_DEFUN([gl_EXTERN_INLINE],
       ? defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ \
       : 199901L <= __STDC_VERSION__) \
      && !defined __APPLE__)
-# define _GL_INLINE inline
+# define _GL_INLINE static inline
 # define _GL_EXTERN_INLINE extern inline
 #elif 2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __APPLE__

PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://keys.gnupg.net or any PGP keyserver for public key.

Attachment: signature.asc
Description: Digital signature

reply via email to

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