[PATCH]: Fix a bunch of "warning: format not a string literal and no format arguments" warnings from the build

Uros Bizjak ubizjak@gmail.com
Wed Sep 9 20:00:00 GMT 2009


Hello!

This fairly trivial patch fixes a bunch of "warning: format not a string 
literal and no format arguments" warnings from the build by replacing 
printfs without format arguments with either fputs or putc.

Where appropriate, the patch also converts a bunch of fprintfs to fputs 
or puts.

Patch is bordering on obvious, but a pair of extra eyes doesn't hurt in 
this case.

2009-09-09  Uros Bizjak <ubizjak@gmail.com>

     * ira-conflicts.c: Use fputs or putc instead of fprintf
     where appropriate.
     * cfg.c: Ditto.
     * toplev.c: Ditto.
     * tree-switch-conversion.c: Ditto.

Patch was bootstrapped and regression tested on x86_64-pc-linux-gnu. OK 
for mainline?

Uros.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: p.diff.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090909/3818b847/attachment.txt>


More information about the Gcc-patches mailing list