From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C426F3851C1C; Tue, 28 Jul 2020 07:20:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C426F3851C1C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1595920834; bh=5XvQo8ClCqE8wmIstrqOkv//TXAzVkRhJgTFyt3wCtA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DLaVCp10fFpGbUcWdhw89ochTEAgBcPN+TbSPILMJ6BfL28pyw7hw6c+EPASN8yuP vDwOJ46XSg98HwVgeci7JGApq9p5o2Szpc9jhX/gQcx1RBRlVDqJ1R1N0HFzPmXNXu B2jWCAnMWLIV1P2SqT7hocYm5qZr6T0my/biDRCY= From: "david at westcontrol dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/96284] Outdated C features should be made errors with newer standards Date: Tue, 28 Jul 2020 07:20:34 +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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: david at westcontrol dot com 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, 28 Jul 2020 07:20:34 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96284 --- Comment #6 from David Brown --- (In reply to Eric Gallager from comment #5) > (In reply to David Brown from comment #0) > > Could this be made an error by default > > (-Werror=3Dimplicit-function-declarations) ? Let those who want to com= pile > > old code with implicit function declarations, do so with an explicit fl= ag. >=20 > I think Florian Weimer tried this and it broke the majority of configure > scripts in existence... Fixing existing code and build systems is always hard - backwards compatibi= lity is C's biggest strength and its biggest weakness. I'm not bothered about my own code - I have makefiles with the relevant opt= ions set in case I make mistakes. My hope is for gcc to be able to have stricter warnings to reduce bugs in code written now and in the future. But I understand that it's also important not to cause trouble for existing code = and build systems.=