From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0DF5C3858412; Tue, 7 Mar 2023 17:03:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0DF5C3858412 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678208609; bh=FK/iIGia1rkN6EvSTYb9l8tTDFTbCITLNPf3JaLeFIo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=k187M+CpJEdtqigKnVOP67Mv8LpUxHEnFiiZYhONOhb/3p+O6jm3H3rKKH+qmCHh8 DNkGl0GjN+YOKq2NCMtCxQg3bxnlVatGuufrYQuRLosX4j4MfHWWONW5sZZgLzyVzr d/tISoWtOJ/vsu+7RnTH/ZAKpuhcjtRbtvV/ALB8= From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/109056] cppcheck: no warning for suspicious return type Date: Tue, 07 Mar 2023 17:03:28 +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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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=3D109056 --- Comment #3 from David Binderman --- (In reply to Andrew Pinski from comment #2) > Which turns on -Wsign-conversion . -Wsign-conversion seems close, but not quite right. The problem is in potential overflow, not sign conversion. -Woverflow doesn't seem to do anything. Nor does -Wconversion.=