public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "freddie_chopin at op dot pl" <sourceware-bugzilla@sourceware.org>
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	[thread overview]
Message-ID: <bug-15414-4717-TlaK3lrlHk@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-15414-4717@http.sourceware.org/bugzilla/>

http://sourceware.org/bugzilla/show_bug.cgi?id=15414

--- Comment #4 from Freddie Chopin <freddie_chopin at op dot pl> 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"...

<just saw the new comment>

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.


  parent reply	other threads:[~2013-04-29 17:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-28 21:45 [Bug build/15414] New: " freddie_chopin at op dot pl
2013-04-29 13:46 ` [Bug build/15414] " tromey at redhat dot com
2013-04-29 14:45 ` freddie_chopin at op dot pl
2013-04-29 17:05 ` tromey at redhat dot com
2013-04-29 17:30 ` freddie_chopin at op dot pl [this message]
2013-04-29 18:15 ` freddie_chopin at op dot pl
2013-05-02 17:19 ` freddie_chopin at op dot pl
2013-05-07 20:10 ` tromey at redhat dot com
2013-05-10 16:10 ` cvs-commit at gcc dot gnu.org
2013-05-10 16:13 ` tromey at redhat dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-15414-4717-TlaK3lrlHk@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).