From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E87ED3856DE8; Mon, 31 Oct 2022 07:53:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E87ED3856DE8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667202793; bh=HE3IX1MMC7/HgsJRlksoyjq5tmZt18sGlsg3Wp89Qis=; h=From:To:Subject:Date:In-Reply-To:References:From; b=xuCr1hh3b5nnfh5jS5PLWJvhCA7CtyEtr1OcmfRd9aQeSzyxlTDEaWX4z4bmHEaXS oCDdkEEUWKfxVZEFHBMGR79s7MgEbLYj4gqXXRly5qGgGWJqg+ltf8y5VrX7Sip2ty KBp7XX0twb64txwvh9U+C7+wWCGhRM/bNT1C/iw0= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/105499] inconsistency between -Werror=c++-compat and g++ in __extension__ block Date: Mon, 31 Oct 2022 07:53:13 +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: 11.3.0 X-Bugzilla-Keywords: documentation X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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: keywords 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=3D105499 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|diagnostic |documentation --- Comment #4 from Andrew Pinski --- __extension__ disables all compatibility warnings. This is by design really as headers sometimes needs to be written using C c= ode and need to turn off these warnings.=20 The documentation should mention that though like it does for -Wc90-c99-com= pat , -Wc99-c11-compat and -Wc11-c2x-compat . https://gcc.gnu.org/onlinedocs/gcc-12.2.0/gcc/Warning-Options.html#index-Wc= _002b_002b-compat=