Commit 520c987d by Nathan Sidwell Committed by Jeff Law

c-lex.c (real_yylex): Don't warn about long long constants if we're allowing long long

        * c-lex.c (real_yylex): Don't warn about long long constants if
        we're allowing long long

From-SVN: r22370
parent c708eef9
Wed Sep 9 23:00:48 1998 Nathan Sidwell <nathan@acm.org>
* c-lex.c (real_yylex): Don't warn about long long constants if
we're allowing long long
Wed Sep 9 21:58:41 1998 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
* except.h (current_function_eh_stub_label): Declare.
......
......@@ -1646,7 +1646,7 @@ yylex ()
{
if (spec_long_long)
error ("three `l's in integer constant");
else if (pedantic)
else if (pedantic && ! in_system_header && warn_long_long)
pedwarn ("ANSI C forbids long long integer constants");
spec_long_long = 1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment