From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 786F6385381D; Mon, 31 Oct 2022 14:57:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 786F6385381D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1667228272; bh=i0XsSo07EBeJgDds6Rl+WNmFS5wo3mknmcTx4E6Ogfs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=PzoZmkaJCNJ5yd4cTnenG9rb/p+6ZTOuncxlX/piBnQlO875y8FUvZGLD3YVu0fck TSzWnyBy26KHnPBvRa3qU7P3tZA85FD6QPv3WD7fwGCJFn7fmYyW90EoL/3w4KNH/C mm3ZAS5QdojE7G/StTC+Ds066mgf1HoGF2oQGD40= 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 14:57:38 +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: 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 --- Comment #7 from Andrew Pinski --- __extension__ is supposed to disable compatibility warnings since they are written in GNU C. Just happens that you enabled compatibility warnings to C= ++ which are also disabled. This is the misunderstanding of what the warning and what __extension__ doe= s.=