diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2019-11-20 01:02:46 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2019-11-20 01:02:46 +0000 |
commit | 54bf2539c55b886ea60d407a7ef2f56f0a19e861 (patch) | |
tree | cd7b998fe3ca5f58cbfbb179cdea717858fc3eca /gcc/cp/cvt.c | |
parent | 56d475cab2f80341343d518f73aeef0e8630555c (diff) | |
download | gcc-54bf2539c55b886ea60d407a7ef2f56f0a19e861.zip gcc-54bf2539c55b886ea60d407a7ef2f56f0a19e861.tar.gz gcc-54bf2539c55b886ea60d407a7ef2f56f0a19e861.tar.bz2 |
cvt.c (ocp_convert): Use additional warning sentinel.
/cp
2019-11-20 Paolo Carlini <paolo.carlini@oracle.com>
* cvt.c (ocp_convert): Use additional warning sentinel.
/testsuite
2019-11-20 Paolo Carlini <paolo.carlini@oracle.com>
* g++.dg/warn/multiple-sign-compare-warn-1.C: New.
From-SVN: r278475
Diffstat (limited to 'gcc/cp/cvt.c')
-rw-r--r-- | gcc/cp/cvt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/cvt.c b/gcc/cp/cvt.c index bca687f..e67b32e 100644 --- a/gcc/cp/cvt.c +++ b/gcc/cp/cvt.c @@ -847,6 +847,7 @@ ocp_convert (tree type, tree expr, int convtype, int flags, /* Prevent bogus -Wint-in-bool-context warnings coming from c_common_truthvalue_conversion down the line. */ warning_sentinel w (warn_int_in_bool_context); + warning_sentinel c (warn_sign_compare); return cp_truthvalue_conversion (e, complain); } } |