aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-lex.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2000-08-21 14:54:28 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2000-08-21 14:54:28 +0000
commitcde6e6843d0521cc837be3d5154be6c3ab93a254 (patch)
tree567643882a164b0c7c6014faac6840e3404eb29e /gcc/c-lex.c
parent120dc6cd25a52db6221ea7ccf1a07acea21d3a02 (diff)
downloadgcc-cde6e6843d0521cc837be3d5154be6c3ab93a254.zip
gcc-cde6e6843d0521cc837be3d5154be6c3ab93a254.tar.gz
gcc-cde6e6843d0521cc837be3d5154be6c3ab93a254.tar.bz2
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
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r--gcc/c-lex.c6
1 files changed, 3 insertions, 3 deletions
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)