From bc690db148f86489ae3ffd105ddde3f0638a6ba5 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Mon, 7 Sep 1992 06:07:30 +0000 Subject: [PATCH] (check_case_value): Call constant_expression_warning. From-SVN: r2070 --- gcc/c-common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/c-common.c b/gcc/c-common.c index 33804c41a8d..b3579f67616 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -321,6 +321,8 @@ check_case_value (value) /* Promote char or short to int. */ value = default_conversion (value); + constant_expression_warning (value); + return value; } -- 2.30.2