public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
To: "'Pedro Alves'" <pedro@codesourcery.com>, <gdb-patches@sourceware.org>
Subject: RE: build gdbserver with -Werror by default
Date: Fri, 27 Aug 2010 08:57:00 -0000	[thread overview]
Message-ID: <001e01cb45c5$a6b53b40$f41fb1c0$@muller@ics-cnrs.unistra.fr> (raw)
In-Reply-To: <201008261917.51934.pedro@codesourcery.com>

  Hi Pedro,

  Cygwin 1.7 fails on gdbserver:
gcc -c -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -
Werror -gstabs+ -O0    -I. -I../../../src/gdb/gdbserver -I../../../src/gdb/gdbse
rver/../common -I../../../src/gdb/gdbserver/../regformats -I../../../src/gdb/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 type `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



  reply	other threads:[~2010-08-27  8:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-26 18:18 Pedro Alves
2010-08-27  8:57 ` Pierre Muller [this message]
2010-08-27 10:29   ` Pedro Alves
2010-08-27 14:50     ` Daniel Jacobowitz
2010-08-27 14:54       ` Pedro Alves

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='001e01cb45c5$a6b53b40$f41fb1c0$@muller@ics-cnrs.unistra.fr' \
    --to=pierre.muller@ics-cnrs.unistra.fr \
    --cc=gdb-patches@sourceware.org \
    --cc=pedro@codesourcery.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).