c-typeck.c (c_expand_start_case): Don't warn for long switch in system headers.
* c-typeck.c (c_expand_start_case): Don't warn for long switch in system headers. From-SVN: r31020
This commit is contained in:
parent
f49a78fcf7
commit
b00c3006c8
|
@ -1,3 +1,8 @@
|
|||
Sat Dec 18 20:30:15 1999 Richard Henderson <rth@cygnus.com>
|
||||
|
||||
* c-typeck.c (c_expand_start_case): Don't warn for long switch
|
||||
in system headers.
|
||||
|
||||
Sat Dec 18 16:28:43 1999 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
|
||||
|
||||
* alias.c: Minor reformatting.
|
||||
|
|
|
@ -6714,6 +6714,7 @@ c_expand_start_case (exp)
|
|||
type = TYPE_MAIN_VARIANT (TREE_TYPE (exp));
|
||||
|
||||
if (warn_traditional
|
||||
&& ! in_system_header
|
||||
&& (type == long_integer_type_node
|
||||
|| type == long_unsigned_type_node))
|
||||
pedwarn ("`long' switch expression not converted to `int' in ANSI C");
|
||||
|
|
Loading…
Reference in New Issue