From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E38BB388E831; Tue, 5 May 2020 09:42:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E38BB388E831 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1588671733; bh=a6d4/nQ04NKPwO8ytC6aJSdOVikyO+GiZbZivWZaNfI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bVfQGJzdGe1P3IhUZ2dbIFJQNyjbV5eixDTl3TwP3agkoKLntIFzxv9s1TsDMo6Rt lKBBPFwTHpra53iGr0iy0hAutpHTyEJXRJGPuKPvA5G/lhRe1hkwicfj9uojv0ap2Z f0s4Jb486YU+9IOm3vyPXr4qtM4uGqqs05yvmuJY= From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/91972] Bootstrap should use -Wmissing-declarations Date: Tue, 05 May 2020 09:42:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gcc dot gnu.org X-Bugzilla-Status: NEW 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 May 2020 09:42:14 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D91972 --- Comment #1 from Alexander Monakov --- Another reason to have -Wmissing-declarations is that otherwise mismatches = of unused functions are not caught until it's too late (mismatching definition= is assumed to be an overload of the function declared in the header file). For a recent example, see https://gcc.gnu.org/pipermail/gcc-patches/2020-May/545129.html which was necessary after a mismatch introduced in https://gcc.gnu.org/pipermail/gcc-patches/2020-May/545114.html=