From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8E4BA3858C50; Fri, 20 Jan 2023 13:52:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8E4BA3858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674222747; bh=XiTPsRC/g8CSGuz25OO/ea+bbwuoH5YdkaiMfay1JRw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gA9oHitRv092qLih5mJlwQZc+bJl74gqSyJ6w3UjSs2FKFZ2XVrvYLq1oRCG2COhO 9o+7mtvAnBi8JyOVEpEx5HMjPoicGpTc+2VZqYjioA/XGs7YKhbGVh/Z15NqiKjHLz Xo0/q8aXjf6Rbu8rUAvAm4iDBmC0eXqtTIstIF/0= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/53232] No warning for main() without a return statement with -std=c99 Date: Fri, 20 Jan 2023 13:52:27 +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: 4.7.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: jakub 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: cc 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=3D53232 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #13 from Jakub Jelinek --- And intersection of all the standards is quite hard to define. So, adding -std=3Dintersection_of_all_c_standards is just not a good idea, = any time same construct changes meaning between different standard you need to decide what to do. This is something that should be solved with warnings or external tools and= on the warning side we already have various warnings.=