[PATCH] Fix -Wundef warning for HAVE_OBSTACK

Siddhesh Poyarekar siddhesh@redhat.com
Wed Jul 9 07:01:00 GMT 2014


Remove the HAVE_OBSTACK macro check and include obstack check in
include path order since we don't have a copy of obstack.h in the
current directory.

Siddhesh

	* locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.

---
 locale/programs/simple-hash.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/locale/programs/simple-hash.c b/locale/programs/simple-hash.c
index ef371a0..8d087da 100644
--- a/locale/programs/simple-hash.c
+++ b/locale/programs/simple-hash.c
@@ -27,11 +27,7 @@
 #include <stdint.h>
 #include <sys/types.h>
 
-#if HAVE_OBSTACK
 # include <obstack.h>
-#else
-# include "obstack.h"
-#endif
 
 #ifdef HAVE_VALUES_H
 # include <values.h>
-- 
1.9.3

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20140709/6d30f5ef/attachment.sig>


More information about the Libc-alpha mailing list