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:
Richard Henderson 1999-12-18 20:31:06 -08:00 committed by Richard Henderson
parent f49a78fcf7
commit b00c3006c8
2 changed files with 6 additions and 0 deletions

View File

@ -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.

View File

@ -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");