From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1581 invoked by alias); 21 Jan 2013 12:32:19 -0000 Received: (qmail 1515 invoked by uid 48); 21 Jan 2013 12:31:55 -0000 From: "manu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/56048] -Werror=format=2 does not work Date: Mon, 21 Jan 2013 12:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: manu at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Status Last reconfirmed Ever Confirmed Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2013-01/txt/msg01956.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D56048 Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2013-01-21 Ever Confirmed|0 |1 --- Comment #2 from Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez 2013-01-21 12:31:54 UTC --- (In reply to comment #1) > I think this may be fixed in GCC 4.8, but I don't have a recently build G= CC at > hand to test it. Actually, it is not. opts.c:control_warning_as_error doesn't handle options with joined arguments, the argument is ignored. Extra code would need to be added to check that the option is joined, that it has an argument, read the argument and pass the correct value to control_warning. Then, it should wor= k.