aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>1999-12-18 20:31:06 -0800
committerRichard Henderson <rth@gcc.gnu.org>1999-12-18 20:31:06 -0800
commitb00c3006c87cb01e2f7575ca8de478a130e4eb94 (patch)
tree12bc4383d6ce5dda43aab56f25b8b8668c6ce13f /gcc
parentf49a78fcf72c7efa924dd4d9a5fa5f48d3f5ca93 (diff)
downloadgcc-b00c3006c87cb01e2f7575ca8de478a130e4eb94.zip
gcc-b00c3006c87cb01e2f7575ca8de478a130e4eb94.tar.gz
gcc-b00c3006c87cb01e2f7575ca8de478a130e4eb94.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/c-typeck.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 53ea549..ddd5922 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c
index d6e0b8f..8b6a0d6 100644
--- a/gcc/c-typeck.c
+++ b/gcc/c-typeck.c
@@ -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");