From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16991 invoked by alias); 27 Aug 2010 08:57:09 -0000 Received: (qmail 16982 invoked by uid 22791); 27 Aug 2010 08:57:07 -0000 X-SWARE-Spam-Status: No, hits=-0.2 required=5.0 tests=AWL,BAYES_40,MSGID_MULTIPLE_AT,TW_SX X-Spam-Check-By: sourceware.org Received: from mailhost.u-strasbg.fr (HELO mailhost.u-strasbg.fr) (130.79.200.152) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 27 Aug 2010 08:56:56 +0000 Received: from md2.u-strasbg.fr (md2.u-strasbg.fr [IPv6:2001:660:2402::187]) by mailhost.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id o7R8tkwZ031173 for ; Fri, 27 Aug 2010 10:55:47 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from mailserver.u-strasbg.fr (ms6.u-strasbg.fr [IPv6:2001:660:2402:d::15]) by md2.u-strasbg.fr (8.14.4/jtpda-5.5pre1) with ESMTP id o7R8tkkZ069139 for ; Fri, 27 Aug 2010 10:55:46 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from d620muller (gw-ics.u-strasbg.fr [130.79.210.225]) (user=mullerp mech=LOGIN) by mailserver.u-strasbg.fr (8.14.4/jtpda-5.5pre1) with ESMTP id o7R8t6hW079168 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) ; Fri, 27 Aug 2010 10:55:21 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) From: "Pierre Muller" To: "'Pedro Alves'" , References: <201008261917.51934.pedro@codesourcery.com> In-Reply-To: <201008261917.51934.pedro@codesourcery.com> Subject: RE: build gdbserver with -Werror by default Date: Fri, 27 Aug 2010 08:57:00 -0000 Message-ID: <001e01cb45c5$a6b53b40$f41fb1c0$@muller@ics-cnrs.unistra.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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/msg00457.txt.bz2 Hi Pedro, Cygwin 1.7 fails on gdbserver: gcc -c -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonlite= ral - Werror -gstabs+ -O0 -I. -I../../../src/gdb/gdbserver -I../../../src/gdb/= gdbse rver/../common -I../../../src/gdb/gdbserver/../regformats -I../../../src/gd= b/gdb server/../../include ../../../src/gdb/gdbserver/tracepoint.c cc1: warnings being treated as errors ../../../src/gdb/gdbserver/tracepoint.c: In function `add_tracepoint_action= ': ../../../src/gdb/gdbserver/tracepoint.c:1870: error: array subscript has ty= pe `c har' make[3]: *** [tracepoint.o] Error 1 isxdigit argument type is int, not char according to man page... Adding an explicit typecast to int at that line allows to go to compilation of win32-low.c, but there you end up with warnings about deprecated functions... To fix that, you would need to use the same kind of macros as in gdb/windows-nat.c Pierre Muller Pascal language support maintainer for GDB