bug-gnulib
[Top][All Lists]
Advanced

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

memchr.c breaks with some warnings turned on


From: Monty Taylor
Subject: memchr.c breaks with some warnings turned on
Date: Thu, 16 Oct 2008 13:32:23 -0700
User-agent: Thunderbird 2.0.0.17 (X11/20080925)

memchr.c doesn't compile if -Wunused-macros -Werror is turned on. Also,
just looking at #if HAVE_BP_SYM_H also throws warnings which make
-Werror builds die.

=== modified file 'gl/memchr.c'
--- gl/memchr.c 2008-10-15 23:04:53 +0000
+++ gl/memchr.c 2008-10-16 20:27:53 +0000
@@ -39,10 +39,12 @@

 #include <limits.h>

-#if HAVE_BP_SYM_H || defined _LIBC
+#if defined(HAVE_BP_SYM_H) || defined _LIBC
 # include <bp-sym.h>
 #else
-# define BP_SYM(sym) sym
+# ifdef weak_alias
+#  define BP_SYM(sym) sym
+# endif
 #endif

 #undef __memchr





reply via email to

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