Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 May 2011 21:00:27 +0000 (UTC)
From:      Ben Laurie <benl@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r222082 - head/contrib/gcc
Message-ID:  <201105182100.p4IL0Rku008406@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: benl
Date: Wed May 18 21:00:27 2011
New Revision: 222082
URL: http://svn.freebsd.org/changeset/base/222082

Log:
  Fix clang warnings.
  
  Approved by:	philip (mentor)

Modified:
  head/contrib/gcc/genmodes.c

Modified: head/contrib/gcc/genmodes.c
==============================================================================
--- head/contrib/gcc/genmodes.c	Wed May 18 20:57:23 2011	(r222081)
+++ head/contrib/gcc/genmodes.c	Wed May 18 21:00:27 2011	(r222082)
@@ -787,7 +787,7 @@ calc_wider_mode (void)
 
 #define tagged_printf(FMT, ARG, TAG) do {		\
   int count_;						\
-  printf ("  " FMT ",%n", ARG, &count_);		\
+  count_ = printf ("  " FMT ",", ARG);			\
   printf ("%*s/* %s */\n", 27 - count_, "", TAG);	\
 } while (0)
 
@@ -822,7 +822,7 @@ enum machine_mode\n{");
     for (m = modes[c]; m; m = m->next)
       {
 	int count_;
-	printf ("  %smode,%n", m->name, &count_);
+	count_ = printf ("  %smode,", m->name);
 	printf ("%*s/* %s:%d */\n", 27 - count_, "",
 		 trim_filename (m->file), m->line);
       }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105182100.p4IL0Rku008406>