You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafficserver.apache.org by "Belmon, Stephane" <sb...@websense.com> on 2009/10/31 01:53:07 UTC

[patch] should use fputs instead of fprintf when the string is ready to go

Another kind of GCC 4.3.x warning (you guys are going to give me commit rights rather than deal with this I'm sure ;-O )

Regression.cc: In function 'int rprintf(RegressionTest*, const char*, ...)':
Regression.cc:194: warning: format not a string literal and no format arguments

--- libinktomi++/Regression.cc  (revision 831451)
+++ libinktomi++/Regression.cc  (working copy)
@@ -190,7 +190,7 @@
   va_start(ap, format);
   l = ink_bvsprintf(buffer, format2, ap);
   va_end(ap);
-  fprintf(stderr, buffer);
+  fputs(buffer,stderr);
   return (l);
 }

--
Stephane Belmon <sb...@websense.com>
Principal Software Engineer
Websense, inc.




 Protected by Websense Hosted Email Security -- www.websense.com 

Re: [patch] should use fputs instead of fprintf when the string is ready to go

Posted by Leif Hedstrom <le...@ogre.com>.
On 10/30/2009 06:53 PM, Belmon, Stephane wrote:
> Another kind of GCC 4.3.x warning (you guys are going to give me commit rights rather than deal with this I'm sure ;-O )
>    

Keep it coming (although, please use Jira for submitting patches / 
bugs). I know you're joking above, but just to be clear: Apache 
Foundation is a Meritocracy. This means, as long as you keep submitting 
useful patches and contributions, we will vote you in as a committer to 
the project. During incubation, that process is a little more involved 
(I think?), but seeing that you are really interested in TS, I'd imagine 
we'll do this long before we graduate :).

Cheers,

-- leif