From cde6e6843d0521cc837be3d5154be6c3ab93a254 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Mon, 21 Aug 2000 14:54:28 +0000 Subject: c-decl.c (duplicate_decls, [...]): Restrict -Wtraditional warnings to user code. * c-decl.c (duplicate_decls, define_label): Restrict -Wtraditional warnings to user code. * c-lex.c (readescape, yylex): Likewise. * c-typeck.c (store_init_value, process_init_element): Likewise (c_expand_start_case): Format. From-SVN: r35845 --- gcc/c-lex.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/c-lex.c') diff --git a/gcc/c-lex.c b/gcc/c-lex.c index 77442e3..c1b85c7 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -902,7 +902,7 @@ readescape (ignore_ptr) switch (c) { case 'x': - if (warn_traditional) + if (warn_traditional && !in_system_header) warning ("the meaning of `\\x' varies with -traditional"); if (flag_traditional) @@ -987,7 +987,7 @@ readescape (ignore_ptr) return TARGET_BS; case 'a': - if (warn_traditional) + if (warn_traditional && !in_system_header) warning ("the meaning of `\\a' varies with -traditional"); if (flag_traditional) @@ -1912,7 +1912,7 @@ yylex () /* We assume that constants specified in a non-decimal base are bit patterns, and that the programmer really meant what they wrote. */ - if (warn_traditional && base == 10 + if (warn_traditional && !in_system_header && base == 10 && traditional_type != ansi_type) { if (TYPE_PRECISION (traditional_type) -- cgit v1.1