From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23356 invoked by alias); 31 Aug 2010 19:08:50 -0000 Received: (qmail 23347 invoked by uid 22791); 31 Aug 2010 19:08:49 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 31 Aug 2010 19:08:37 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id CB5842BAB30; Tue, 31 Aug 2010 15:08:35 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 9xTuRsRlZ2nw; Tue, 31 Aug 2010 15:08:35 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 9AB732BAB05; Tue, 31 Aug 2010 15:08:35 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 6015DF599F; Tue, 31 Aug 2010 21:08:28 +0200 (CEST) From: Joel Brobecker To: gdb-patches@sourceware.org Cc: Joel Brobecker Subject: [commit] Build memmem with -Wno-error. Date: Tue, 31 Aug 2010 19:08:00 -0000 Message-Id: <1283281706-30409-1-git-send-email-brobecker@adacore.com> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-08/txt/msg00568.txt.bz2 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