projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d7a4cf
)
(check_case_value): Call constant_expression_warning.
author
Richard Stallman
<rms@gnu.org>
Mon, 7 Sep 1992 06:07:30 +0000
(06:07 +0000)
committer
Richard Stallman
<rms@gnu.org>
Mon, 7 Sep 1992 06:07:30 +0000
(06:07 +0000)
From-SVN: r2070
gcc/c-common.c
patch
|
blob
|
history
diff --git
a/gcc/c-common.c
b/gcc/c-common.c
index 33804c41a8d8601040177487ec3732df099ab221..b3579f676163e0803fc340ce1c584d3c91fcbb1f 100644
(file)
--- 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;
}
\f