public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Joseph S. Myers" <jsm28@cam.ac.uk>
To: gcc@gcc.gnu.org
Subject: -Wtraditional, integer constants and C99
Date: Mon, 18 Sep 2000 14:25:00 -0000	[thread overview]
Message-ID: <Pine.LNX.4.21.0009182216130.18463-100000@kern.srcf.societies.cam.ac.uk> (raw)

-Wtraditional gives warnings about integer constants that changed their
sign between traditional C and C89.  In C99, decimal integer constants
with no 'u' or 'U' suffix again cannot be unsigned: so, when in C99 mode
and implementing the C99 type rules, but with -Wtraditional specified,
should the compiler make any attempt to give warnings relating to the C89
rules, or only to compare the C99 type with the traditional one?  (The
simplest solution is just to compare the C99 type with the traditional
one; but this would reduce the value of -Wtraditional as a portability
tool when C99 mode is eventually made the default.)

-- 
Joseph S. Myers
jsm28@cam.ac.uk

                 reply	other threads:[~2000-09-18 14:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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.LNX.4.21.0009182216130.18463-100000@kern.srcf.societies.cam.ac.uk \
    --to=jsm28@cam.ac.uk \
    --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).