Fix a multi-line format-string warning.
authorRalph Giles <giles@xiph.org>
Tue, 8 Mar 2011 15:14:12 +0000 (07:14 -0800)
committerRalph Giles <giles@xiph.org>
Tue, 8 Mar 2011 15:14:12 +0000 (07:14 -0800)
GCC 4.5 and 4.6 both issue a warning about the multi-line format
string introduced in bc9c30a0, which also changed the whitespace
in the associated stt file by line-wrapping the long format string.

Instead, use multiple string constants, which the compiler will
concatenate. This maintains the original formatting, but remains
legible within the standard line length.

Change-Id: I27c9f92d46be82d408105a3a4091f145f677e00e

vp8/encoder/firstpass.c

index b5470f8f65de20c8d9fb11b8ddf68c2319185293..d2cc8482eb587ca42fa3c6ea80a50ce18f042474 100644 (file)
@@ -312,9 +312,9 @@ void vp8_output_stats(const VP8_COMP            *cpi,
         FILE *fpfile;
         fpfile = fopen("firstpass.stt", "a");
 
-        fprintf(fpfile, "%12.0f %12.0f %12.0f %12.4f %12.4f %12.4f %12.4f
-                %12.4f %12.4f %12.4f %12.4f %12.4f %12.4f %12.4f %12.0f
-                %12.4f\n",
+        fprintf(fpfile, "%12.0f %12.0f %12.0f %12.4f %12.4f %12.4f %12.4f"
+                " %12.4f %12.4f %12.4f %12.4f %12.4f %12.4f %12.4f %12.0f"
+                %12.4f\n",
                 stats->frame,
                 stats->intra_error,
                 stats->coded_error,