public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [gccgo] Use %s to avoid warning
@ 2010-07-21 10:16 Ian Lance Taylor
  0 siblings, 0 replies; only message in thread
From: Ian Lance Taylor @ 2010-07-21 10:16 UTC (permalink / raw)
  To: gcc-patches, gofrontend-dev

[-- Attachment #1: Type: text/plain, Size: 134 bytes --]

This patch uses %s to pass a string to error_at to avoid a warning about
an unknown format literal.  Committed to gccgo branch.

Ian


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: %s --]
[-- Type: text/x-diff, Size: 266 bytes --]

diff -r 1efbc309486c go/types.cc
--- a/go/types.cc	Wed Jul 21 03:11:16 2010 -0700
+++ b/go/types.cc	Wed Jul 21 03:13:52 2010 -0700
@@ -687,7 +687,7 @@
 
   mpfr_clear(fval);
 
-  error_at(location, errmsg);
+  error_at(location, "%s", errmsg);
   return false;
 }
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-07-21 10:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-21 10:16 [gccgo] Use %s to avoid warning Ian Lance Taylor

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).