Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [FYI 0/2] Fix -Wformat-nonliteral
@ 2018-09-06  3:39 Tom Tromey
  2018-09-06  3:39 ` [FYI 1/2] Disable -Wformat-nonliteral in parts of printcmd.c Tom Tromey
  2018-09-06  3:39 ` [FYI 2/2] Make -Wformat-nonliteral work with gcc Tom Tromey
  0 siblings, 2 replies; 4+ messages in thread
From: Tom Tromey @ 2018-09-06  3:39 UTC (permalink / raw)
  To: gdb-patches

Simon pointed out today that my earlier patch to remove some custom
rules from the Makefile had broken his build.

We tracked this difference down to a bug in warning.m4:
-Wformat-nonliteral was not being enabled for builds with gcc.  This
is why my build and the builders did not warn -- in fact the original
patch was incorrect.

This series fixes the problem using the diagnostic suppression code.
This seems a bit better because now the warning avoidance is more
targeted.

The first patch here is from Simon (I wrote the commit text and the
ChangeLog entry, in case they aren't up to par); but I'm committing it
on his behalf as he is traveling.

I'm checking this in.

Tom



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-09-06  3:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-06  3:39 [FYI 0/2] Fix -Wformat-nonliteral Tom Tromey
2018-09-06  3:39 ` [FYI 1/2] Disable -Wformat-nonliteral in parts of printcmd.c Tom Tromey
2018-09-06  3:46   ` Tom Tromey
2018-09-06  3:39 ` [FYI 2/2] Make -Wformat-nonliteral work with gcc Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox