This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gccgo] Use %s to avoid warning


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

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]