c-typeck.c (c_expand_start_case): Change -Wtraditional pedwarn for `long' switch expression into a plain warning.
* c-typeck.c (c_expand_start_case): Change -Wtraditional pedwarn for `long' switch expression into a plain warning. From-SVN: r35204
This commit is contained in:
parent
22c9a79528
commit
b510e0bd82
@ -4,6 +4,9 @@
|
|||||||
|
|
||||||
2000-07-23 Joseph S. Myers <jsm28@cam.ac.uk>
|
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.
|
* c-lex.c (init_lex): Keep the "inline" keyword in C99 mode.
|
||||||
(yylex): Don't pedwarn for "inline" in C99 mode.
|
(yylex): Don't pedwarn for "inline" in C99 mode.
|
||||||
|
|
||||||
|
@ -6739,7 +6739,7 @@ c_expand_start_case (exp)
|
|||||||
&& ! in_system_header
|
&& ! in_system_header
|
||||||
&& (type == long_integer_type_node
|
&& (type == long_integer_type_node
|
||||||
|| type == long_unsigned_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);
|
exp = default_conversion (exp);
|
||||||
type = TREE_TYPE (exp);
|
type = TREE_TYPE (exp);
|
||||||
|
Loading…
Reference in New Issue
Block a user