svn commit: r259696 - head/contrib/gcc

Pedro F. Giffuni pfg at FreeBSD.org
Sat Dec 21 19:53:52 UTC 2013


Author: pfg
Date: Sat Dec 21 19:53:51 2013
New Revision: 259696
URL: http://svnweb.freebsd.org/changeset/base/259696

Log:
  gcc: warnings from -Wformat-security
  
  Minor mismatch in r259666.
  
  Obtained from:	Apple GCC 4.2 - 5646 (Radar 5764921)
  MFC after:	1 week

Modified:
  head/contrib/gcc/gcov.c

Modified: head/contrib/gcc/gcov.c
==============================================================================
--- head/contrib/gcc/gcov.c	Sat Dec 21 19:29:08 2013	(r259695)
+++ head/contrib/gcc/gcov.c	Sat Dec 21 19:53:51 2013	(r259696)
@@ -414,10 +414,10 @@ print_usage (int error_p)
 static void
 print_version (void)
 {
-  fnotice (stdout, "%s", "gcov (GCC) %s\n", version_string);
+  fnotice (stdout, "gcov (GCC) %s\n", version_string);
   fprintf (stdout, "Copyright %s 2006 Free Software Foundation, Inc.\n",
 	   _("(C)"));
-  fnotice (stdout,
+  fnotice (stdout, "%s",
 	   _("This is free software; see the source for copying conditions.\n"
 	     "There is NO warranty; not even for MERCHANTABILITY or \n"
 	     "FITNESS FOR A PARTICULAR PURPOSE.\n\n"));


More information about the svn-src-all mailing list