public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* -Wtraditional, integer constants and C99
@ 2000-09-18 14:25 Joseph S. Myers
  0 siblings, 0 replies; only message in thread
From: Joseph S. Myers @ 2000-09-18 14:25 UTC (permalink / raw)
  To: gcc

-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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-09-18 14:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-18 14:25 -Wtraditional, integer constants and C99 Joseph S. Myers

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).