This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: long long constants and -Wno-long-long
- To: Nathan Sidwell <nathan at cs dot bris dot ac dot uk>
- Subject: Re: PATCH: long long constants and -Wno-long-long
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Sun, 30 Aug 1998 19:04:07 -0600
- cc: egcs-patches at cygnus dot com
- Reply-To: law at cygnus dot com
In message <35DDBE9E.5485@cs.bris.ac.uk>you write:
> This is a multi-part message in MIME format.
>
> --------------47D247A73B7
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
>
> Hi,
> Currently both gcc and g++ warn about long long constants when in -ansi
> -pedantic mode, even when the -Wno-long-long flag is given. This does
> not appear to be the expected behaviour. -Wno-long-long explicitly
> permits variables of type long long, even in pedantic mode. Therefore I
> think the same flag should allow long long literals too. Attached is a
> patch to both c-lex.c and cp/lex.c to fix the problem for both C and
> C++. Here is a test case, (suitable for both C and C++)
> compile with
I think this is wrong. If I'm in pedantic mode, I want to know about
*everything* that is not 100% by the book. I'm not aware of any case
where a -Wno-* flag disables a pedantic warning/error.
jeff