Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Bob Rossi <bob@brasko.net>
To: GDB <gdb@sources.redhat.com>
Subject: Re: compile warnings
Date: Sun, 03 Apr 2005 03:42:00 -0000	[thread overview]
Message-ID: <20050403044042.GC4521@white> (raw)
In-Reply-To: <20050403031654.GA25512@nevyn.them.org>

On Sat, Apr 02, 2005 at 10:16:54PM -0500, Daniel Jacobowitz wrote:
> On Sat, Apr 02, 2005 at 10:05:05PM -0500, Bob Rossi wrote:
> > Hi,
> > 
> > Is this normal? This is using current CVS with
> > $ gcc --version
> > gcc (GCC) 3.3.5 (Debian 1:3.3.5-8)
> > 
> > ../../src/gdb/printcmd.c: In function `printf_command':
> > ../../src/gdb/printcmd.c:1962: warning: format not a string literal, argument types not checked
> > ../../src/gdb/printcmd.c:1968: warning: format not a string literal, argument types not checked
> > ../../src/gdb/printcmd.c:1975: warning: format not a string literal, argument types not checked
> > ../../src/gdb/printcmd.c:1985: warning: format not a string literal, argument types not checked
> 
> Yep.  There's an enforced -Wno-error on that file, for this reason.

gcc -c -g -I. -I../../src/gdb -I../../src/gdb/config -DLOCALEDIR="\"/usr/local/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 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral -Wunused-label -Wunused-function  ../../src/gdb/printcmd.c
../../src/gdb/printcmd.c: In function `printf_command':
../../src/gdb/printcmd.c:1962: warning: format not a string literal, argument types not checked
../../src/gdb/printcmd.c:1968: warning: format not a string literal, argument types not checked
../../src/gdb/printcmd.c:1975: warning: format not a string literal, argument types not checked
../../src/gdb/printcmd.c:1985: warning: format not a string literal, argument types not checked
Making init.c

I configured GDB as 'CFLAGS=-g ./configure --prefix=...'.

However, as you can see, I don't have the -Wno-error. But if this is a
known warning, it doesn't matter anyways.

Thanks,
Bob Rossi


  reply	other threads:[~2005-04-03  3:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-03  2:07 Bob Rossi
2005-04-03  3:16 ` Daniel Jacobowitz
2005-04-03  3:42   ` Bob Rossi [this message]
2005-04-03  3:53     ` Daniel Jacobowitz

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=20050403044042.GC4521@white \
    --to=bob@brasko.net \
    --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