diff options
Diffstat (limited to 'gcc/cp/cvt.c')
-rw-r--r-- | gcc/cp/cvt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cp/cvt.c b/gcc/cp/cvt.c index ca8e7632466..b413ee854e6 100644 --- a/gcc/cp/cvt.c +++ b/gcc/cp/cvt.c @@ -1402,7 +1402,9 @@ convert_to_void (tree expr, impl_conv_void implicit, tsubst_flags_t complain) || code == PREDECREMENT_EXPR || code == PREINCREMENT_EXPR || code == POSTDECREMENT_EXPR - || code == POSTINCREMENT_EXPR))) + || code == POSTINCREMENT_EXPR)) + || code == VEC_PERM_EXPR + || code == VEC_COND_EXPR) && (complain & tf_warning)) warning_at (loc, OPT_Wunused_value, "value computed is not used"); } |