OSDN Git Service

Remove extraneous fprintf args
authorBrian Carlstrom <bdc@google.com>
Tue, 28 Oct 2014 01:57:28 +0000 (18:57 -0700)
committerBrian Carlstrom <bdc@google.com>
Tue, 28 Oct 2014 01:58:52 +0000 (18:58 -0700)
Also fix build scripts to die due to such warnings.

Change-Id: Ia007744fcef8e37ba73b4f73e7c50c9fc9a1d4f5

test/023-many-interfaces/build
test/303-verification-stress/build
test/303-verification-stress/classes-gen.c

index 4ea52d9..ad42a2d 100644 (file)
@@ -18,7 +18,7 @@
 set -e
 
 # Write out a bunch of interface source files.
-gcc -o iface-gen iface-gen.c
+gcc -Wall -Werror -o iface-gen iface-gen.c
 ./iface-gen
 
 mkdir classes
index c1935d2..789d38e 100644 (file)
@@ -18,7 +18,7 @@
 set -e
 
 # Write out a bunch of source files.
-gcc -o classes-gen classes-gen.c
+gcc -Wall -Werror -o classes-gen classes-gen.c
 ./classes-gen
 
 mkdir classes
index be6cfa7..1f2fe3b 100644 (file)
@@ -26,11 +26,11 @@ static int createFiles(int count, int array_size)
 
         fprintf(fp, "public class Test%03d {\n", i);
         fprintf(fp, "    static String[] array = new String[%d];\n", array_size);
-        fprintf(fp, "    static {\n", array_size);
+        fprintf(fp, "    static {\n");
         for (k = 0; k < array_size; k++) {
             fprintf(fp, "        array[%d] = \"string_%04d\";\n", k, k);
         }
-        fprintf(fp, "    }\n", array_size);
+        fprintf(fp, "    }\n");
         fprintf(fp, "}\n");
         fclose(fp);
     }