summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2000-07-23 16:35:23 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2000-07-23 16:35:23 +0000
commitfb16234a73670ee2186d09e1087295f6d913fecc (patch)
tree8d94cdf270e4aad98b09f49c7d1dc87f588b9734
parent9c068f1327f6cdf78a45c612f09552dc0e76d688 (diff)
downloadppe42-gcc-fb16234a73670ee2186d09e1087295f6d913fecc.tar.gz
ppe42-gcc-fb16234a73670ee2186d09e1087295f6d913fecc.zip
* c-typeck.c (c_expand_start_case): Change -Wtraditional pedwarn
for `long' switch expression into a plain warning. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35204 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/c-typeck.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 532546de0bb..ede1d1df118 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -4,6 +4,9 @@
2000-07-23 Joseph S. Myers <jsm28@cam.ac.uk>
+ * c-typeck.c (c_expand_start_case): Change -Wtraditional pedwarn
+ for `long' switch expression into a plain warning.
+
* c-lex.c (init_lex): Keep the "inline" keyword in C99 mode.
(yylex): Don't pedwarn for "inline" in C99 mode.
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c
index f0297642fda..a8fa6b55152 100644
--- a/gcc/c-typeck.c
+++ b/gcc/c-typeck.c
@@ -6739,7 +6739,7 @@ c_expand_start_case (exp)
&& ! in_system_header
&& (type == long_integer_type_node
|| type == long_unsigned_type_node))
- pedwarn ("`long' switch expression not converted to `int' in ANSI C");
+ warning ("`long' switch expression not converted to `int' in ANSI C");
exp = default_conversion (exp);
type = TREE_TYPE (exp);
OpenPOWER on IntegriCloud