This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] Build memmem with -Wno-error.
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Cc: Joel Brobecker <brobecker at adacore dot com>
- Date: Tue, 31 Aug 2010 12:08:26 -0700
- Subject: [commit] Build memmem with -Wno-error.
See comment explaining why we need to do this. (and also discussed
on IRC with Pedro).
gdb/gdbserver/ChangeLog:
* Makefile.in (memmem.o): Build with -Wno-error.
Tested on x86_64-linux. Since it was verbally approved by Pedro,
I will commit this sometime today.
---
gdb/gdbserver/Makefile.in | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/gdb/gdbserver/Makefile.in b/gdb/gdbserver/Makefile.in
index e397bd7..ffec46f 100644
--- a/gdb/gdbserver/Makefile.in
+++ b/gdb/gdbserver/Makefile.in
@@ -347,8 +347,13 @@ gdbreplay.o: gdbreplay.c config.h
signals.o: ../common/signals.c $(server_h) $(signals_def)
$(CC) -c $(CPPFLAGS) $(INTERNAL_CFLAGS) $< -DGDBSERVER
+# We build memmem.c with -Wno-error because this file is not under
+# our control. On LynxOS, the compiler generates some warnings
+# because str-two-way.h uses a constant (MAX_SIZE) whose definition
+# makes it ambiguous whether it is signed or unsigned ("warning: this
+# decimal constant is unsigned only in ISO C90").
memmem.o: ../gnulib/memmem.c
- $(CC) -o memmem.o -c $(CPPFLAGS) $(INTERNAL_CFLAGS) $<
+ $(CC) -o memmem.o -c $(CPPFLAGS) $(INTERNAL_CFLAGS) -Wno-error $<
i386_low_h = $(srcdir)/i386-low.h
--
1.7.1