public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Vincent Lefevre <vincent+gcc@vinc17.org>
To: gcc@gcc.gnu.org
Subject: Re: New gcc 4.0.0 warnings seem spurious
Date: Thu, 28 Apr 2005 16:24:00 -0000	[thread overview]
Message-ID: <20050428161656.GW3983@ay.vinc17.org> (raw)
In-Reply-To: <D5C13648-5637-44A2-B7B6-8FE72A602460@apple.com>

On 2005-04-27 14:30:01 -0700, Mike Stump wrote:
> On Apr 27, 2005, at 5:15 AM, Neil Booth wrote:
> >Even better, you can turn of the warning with a cast, making your
> >intent explicit to the compiler, so there's every reason to have
> >it on by default.
> 
> And, if you don't like casts, you can (...)&255 or whatever.

This is quite dirty if the type comes from an internal structure
of some library, where the size of the integer may depend on the
architecture or may change in the future... Do you see a better
solution?

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA

  reply	other threads:[~2005-04-28 16:17 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-26 15:10 Bruce Lilly
2005-04-26 15:59 ` Joseph S. Myers
2005-04-26 21:43   ` Bruce Lilly
2005-04-26 22:02     ` Zack Weinberg
2005-04-27 10:38       ` Vincent Lefevre
2005-04-27 11:16         ` Zack Weinberg
2005-04-27 11:30           ` Vincent Lefevre
2005-04-27 11:55             ` Andrew Haley
2005-04-27 12:07               ` Vincent Lefevre
2005-04-27 12:48                 ` Gabriel Dos Reis
2005-04-27 13:59                   ` Vincent Lefevre
2005-04-27 14:18                     ` Gabriel Dos Reis
2005-04-27 12:18             ` Gabriel Dos Reis
2005-04-27 14:16               ` Vincent Lefevre
2005-04-27 12:28             ` Neil Booth
2005-04-27 21:35               ` Mike Stump
2005-04-28 16:24                 ` Vincent Lefevre [this message]
2005-04-27 12:15           ` Gabriel Dos Reis
2005-04-27 11:26         ` Andrew Haley
2005-04-27 11:34           ` Vincent Lefevre
2005-04-27 11:56             ` Andrew Haley
2005-04-27 12:09               ` Vincent Lefevre
2005-04-27 13:47                 ` Gabriel Dos Reis
2005-04-27 14:14                   ` Vincent Lefevre
2005-04-27 14:20                     ` Gabriel Dos Reis
2005-04-27 12:32             ` Gabriel Dos Reis
2005-04-27 14:11               ` Vincent Lefevre
2005-04-27 14:18                 ` Gabriel Dos Reis
2005-04-27 15:05                   ` Vincent Lefevre
2005-04-27 15:15                     ` Dave Korn
2005-04-27 15:32                     ` Gabriel Dos Reis
2005-04-27 16:24                       ` Vincent Lefevre
2005-04-27 16:44                         ` Gabriel Dos Reis
2005-04-27 15:00                 ` Dave Korn
2005-04-27 15:29                   ` Vincent Lefevre
2005-04-27 12:14         ` Gabriel Dos Reis

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=20050428161656.GW3983@ay.vinc17.org \
    --to=vincent+gcc@vinc17.org \
    --cc=gcc@gcc.gnu.org \
    /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).