From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7192 invoked by alias); 29 Apr 2013 17:30:58 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 7165 invoked by uid 48); 29 Apr 2013 17:30:57 -0000 From: "freddie_chopin at op dot pl" To: gdb-prs@sourceware.org Subject: [Bug build/15414] Build fails with mingw32-w64 GCC-4.8.0 Date: Mon, 29 Apr 2013 17:30:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: build X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: freddie_chopin at op dot pl X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-SW-Source: 2013-q2/txt/msg00169.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=15414 --- Comment #4 from Freddie Chopin 2013-04-29 17:30:57 UTC --- With GCC 4.8.0 (linux host and target) this command works: $ gcc -Wall -Werror -Wno-format-nonliteral test.c This doesn't: $ gcc -Wall -Werror -Wformat-nonliteral -Wno-format test.c cc1: error: -Wformat-nonliteral ignored without -Wformat [-Werror=format-nonliteral] cc1: all warnings being treated as errors Interesting fact - this command works too: $ gcc -Wall -Werror -Wformat-nonliteral -Wno-format-nonliteral test.c I've tested that it in fact disables checking of non-literal format strings, but it "looks bad" - like a hack (; So I think the solution is to change "-Wformat-nonliteral" to "-Wno-format-nonliteral" instead of adding "-Wno-format". Another possible option is to add "-Wno-format-nonliteral" instead of "-Wno-format"... I was thinking about the same thing - I'll try that in a moment and report back. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.