Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: Gdb List <gdb@sources.redhat.com>
Subject: build failure in TUI
Date: Mon, 26 Aug 2002 14:18:00 -0000	[thread overview]
Message-ID: <87d6s5mie5.fsf@fleche.redhat.com> (raw)

I just updated and rebuilt the gdb trunk on x86 Red Hat Linux 7.3.

I get this:

gcc -c -g -O2    -I. -I../../src/gdb -I../../src/gdb/config -DLOCALEDIR="\"/home/tromey/gnu/baseline-gdb/install/share/locale\"" -DHAVE_CONFIG_H -I../../src/gdb/../include/opcode -I../../src/gdb/../readline/.. -I../bfd -I../../src/gdb/../bfd  -I../../src/gdb/../include -I../intl -I../../src/gdb/../intl  -DMI_OUT=1 -DTUI=1 -I../../src/gdb/tui -DGDBTK -DUI_OUT=1 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Werror ../../src/gdb/tui/tuiIO.c
cc1: warnings being treated as errors
../../src/gdb/tui/tuiIO.c: In function `tui_redisplay_readline':
../../src/gdb/tui/tuiIO.c:190: warning: comparison is always true due to limited range of data type
../../src/gdb/tui/tuiIO.c:193: warning: comparison is always true due to limited range of data type


This causes a failure because I configure with both --enable-tui and
--enable-gdb-build-warnings=,-Werror.

I looked at the code a bit.  I think the simplest fix may be to change
the definition of CTRL_CHAR (in readline/chardefs.h) to cast its
argument to `unsigned char' (and then remove the `>= 0' check).
However, I don't know the policy on changing readline, so I decided
not to send a patch.

Tom


             reply	other threads:[~2002-08-26 21:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-26 14:18 Tom Tromey [this message]
2002-08-26 14:21 ` Daniel Jacobowitz
2002-08-26 14:31   ` Elena Zannoni
2002-08-26 14:51     ` Stephane Carrez
2002-08-26 15:04       ` Elena Zannoni
2002-08-26 15:31       ` Daniel Jacobowitz
2002-08-26 17:29         ` Elena Zannoni
2002-08-26 17:37           ` Elena Zannoni

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=87d6s5mie5.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=gdb@sources.redhat.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