From 54bf2539c55b886ea60d407a7ef2f56f0a19e861 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Wed, 20 Nov 2019 01:02:46 +0000 Subject: cvt.c (ocp_convert): Use additional warning sentinel. /cp 2019-11-20 Paolo Carlini * cvt.c (ocp_convert): Use additional warning sentinel. /testsuite 2019-11-20 Paolo Carlini * g++.dg/warn/multiple-sign-compare-warn-1.C: New. From-SVN: r278475 --- gcc/cp/cvt.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/cp/cvt.c') 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); } } -- cgit v1.1