From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2B7EB388C03D; Thu, 17 Nov 2022 02:07:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2B7EB388C03D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668650848; bh=3w2xZzHwnb+yCb8L6EqgBAgkRjIvbkdkffplA5381R8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=LFrPaWh3iLlCpe4OwlYnoTL+wv7LrYfrRc+mUVgmAAG8S0URFGzForLe6rYnJpShc 11oK1CZQPRAOQqWxHbK6GvgAEBHT1soCHJKK3zESuCFELcQ0/WsOkdiuUR8Grdztxv PAWQJ05Hem+8oAlJmgYVJT6AQ8Ux1EwA48ZBwuLs= From: "sam at gentoo dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/107730] Trivial -Wreturn-type false positive when function marked static Date: Thu, 17 Nov 2022 02:07: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: 12.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sam at gentoo dot org 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=3D107730 --- Comment #1 from Sam James --- Note that if I drop 'static', the warning goes away. Clang does not warn at all.=