[gccgo] Use %s to avoid warning

Submitted by Ian Taylor on July 21, 2010, 10:15 a.m.

Details

Message ID mcrzkxlcf8t.fsf@google.com
State New
Headers show

Commit Message

Ian Taylor July 21, 2010, 10:15 a.m.
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

Patch hide | download patch | download mbox

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;
 }