From: Richard Stallman Date: Mon, 7 Sep 1992 06:07:30 +0000 (+0000) Subject: (check_case_value): Call constant_expression_warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bc690db148f86489ae3ffd105ddde3f0638a6ba5;p=gcc.git (check_case_value): Call constant_expression_warning. From-SVN: r2070 --- 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; }