Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@is.elta.co.il>
To: Andrew Cagney <ac131313@cygnus.com>
Cc: GDB Patches <gdb-patches@sourceware.cygnus.com>
Subject: Re: [fyi] fix mips-tdep.c -Wprintf(a?"%d":"%d%d", ...)
Date: Wed, 21 Feb 2001 02:27:00 -0000	[thread overview]
Message-ID: <Pine.SUN.3.91.1010221122508.18287W-100000@is> (raw)
In-Reply-To: <3A93020B.B82D6540@cygnus.com>

On Tue, 20 Feb 2001, Andrew Cagney wrote:

> I've checked in the attatched.  A GCC variant didn't like conditional
> formats vis:
> 
> 	printf (cond ? "arg1=%d" : "arg1=%d arg2+%d", arg1, arg2);

That's one of my gripes with latest versions of GCC (which version did
you use, btw?): this change caused lots of valid C code to start
emitting tons of warnings.  Ulrich Drepper tried to change GCC
maintainers' minds on this one (evidently, glibc uses such expressions
in printf's), to no avail IIRC.

Isn't there a compiler switch to turn this warning off?  Perhaps we
should use it instead of ``fixing'' that which isn't broken.


  reply	other threads:[~2001-02-21  2:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-20 15:49 Andrew Cagney
2001-02-21  2:27 ` Eli Zaretskii [this message]
2001-02-21 10:30   ` Andrew Cagney

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=Pine.SUN.3.91.1010221122508.18287W-100000@is \
    --to=eliz@is.elta.co.il \
    --cc=ac131313@cygnus.com \
    --cc=gdb-patches@sourceware.cygnus.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