From: Eli Zaretskii <eliz@gnu.org>
To: Alexandre Oliva <aoliva@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: fixes for type-punning warnings in GCC 4.1
Date: Tue, 20 Dec 2005 20:50:00 -0000 [thread overview]
Message-ID: <ufyoog2mf.fsf@gnu.org> (raw)
In-Reply-To: <ork6e0nban.fsf@livre.oliva.athome.lsd.ic.unicamp.br> (message from Alexandre Oliva on Mon, 19 Dec 2005 17:20:48 -0200)
> From: Alexandre Oliva <aoliva@redhat.com>
> Date: Mon, 19 Dec 2005 17:20:48 -0200
>
> This patch fixes the type-punning warnings that the GCC 4.1 branch
> issues when compiling the GDB code base.
> [...]
> - num = sscanf (p, "%g%s", (float *) &putithere->typed_val_float.dval,s);
> + num = sscanf (p, "%g%s", (float *) (void *) &putithere->typed_val_float.dval,s);
If this is the fix, then forgive me, but I'd prefer not to fix it at
all, 'cause it's so UUUGLYYYY! If we can use some command-line switch
to GCC to shut it up, let's do that instead. Failing that, let's just
leave the code alone, so that GCC's continued whining stands as a token
of our unappreciation to compilers that should have known better!
Thanks for working on this, anyway.
next prev parent reply other threads:[~2005-12-19 22:10 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-20 19:35 Alexandre Oliva
2005-12-20 20:50 ` Eli Zaretskii [this message]
2005-12-20 21:05 ` Daniel Jacobowitz
2005-12-21 11:25 ` Eli Zaretskii
2005-12-22 3:48 ` Alexandre Oliva
2006-01-16 18:27 ` Alexandre Oliva
2006-01-22 20:33 ` Daniel Jacobowitz
2006-02-08 3:35 ` Alexandre Oliva
2006-02-08 4:59 ` Daniel Jacobowitz
2006-02-10 0:33 ` Alexandre Oliva
2006-02-10 1:39 ` Daniel Jacobowitz
2006-02-13 18:58 ` Alexandre Oliva
2006-02-13 20:13 ` Mark Kettenis
2006-02-13 20:19 ` Daniel Jacobowitz
2006-02-08 5:58 ` Alexandre Oliva
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=ufyoog2mf.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=aoliva@redhat.com \
--cc=gdb-patches@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