From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C15403858D1E; Fri, 10 Nov 2023 09:02:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C15403858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699606973; bh=TKO6dTOkIVaY0LO6jKgc2QcXLMpAMjFoQ+saUfwhaI4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=QOeK61Lr4pbiv1iYJnNoneNRbO1W2s7ZeCTlFgP+zcFhS8DOx8976eYQge1mS+hCb ZmazTcms90eEqi4EdIMoltPN9NYH8+bDzze7X9CKMoiLkDLNlTAi5ASZlEaDzXvhQO x71mau2WVArw8NN/1+SUy7OIzerHnWZhTTSs++Qc= From: "vincent-gcc at vinc17 dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/112463] ternary operator / -Wsign-compare inconsistency Date: Fri, 10 Nov 2023 09:02:53 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: vincent-gcc at vinc17 dot net X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D112463 --- Comment #3 from Vincent Lef=C3=A8vre --- (In reply to Andrew Pinski from comment #2) > One problem with -Wsign-conversion is that it is not enabled with > -Wextra/-Wall . However, I don't understand why -Wsign-compare is enabled by -Wextra but not -Wsign-conversion, while these are similar warnings. Note that when compiling GNU MPFR, *both* give lots of false positives (whi= ch could be avoided, at least for most of them, if PR38470 were fixed).=