public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [commit] Build memmem with -Wno-error.
@ 2010-08-31 19:08 Joel Brobecker
  2010-08-31 19:48 ` Pedro Alves
  0 siblings, 1 reply; 13+ messages in thread
From: Joel Brobecker @ 2010-08-31 19:08 UTC (permalink / raw)
  To: gdb-patches; +Cc: Joel Brobecker

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2010-09-02 14:00 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-31 19:08 [commit] Build memmem with -Wno-error Joel Brobecker
2010-08-31 19:48 ` Pedro Alves
2010-08-31 20:15   ` Jan Kratochvil
2010-08-31 20:34     ` Pedro Alves
2010-08-31 21:22       ` Joel Brobecker
2010-08-31 21:59         ` Pedro Alves
2010-08-31 22:07           ` Joel Brobecker
2010-08-31 22:13             ` Jan Kratochvil
2010-08-31 22:21               ` Pedro Alves
2010-09-02 14:54       ` Jan Kratochvil
2010-08-31 22:04   ` Joel Brobecker
2010-08-31 22:23     ` Pedro Alves
2010-09-01  1:56       ` Joel Brobecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).