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
This commit is contained in:
Nathan Sidwell 1998-09-09 22:02:02 +00:00 committed by Jeff Law
parent c708eef986
commit 520c987d6a
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -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;
}