Просмотр исходного кода

Merge branch 'clang-warnings' into release

Brad King 12 лет назад
Родитель
Сommit
b783b99f8a
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      Templates/TestDriver.cxx.in

+ 1 - 2
Templates/TestDriver.cxx.in

@@ -58,7 +58,7 @@ static char* lowercase(const char *string)
 
 
 int main(int ac, char *av[])
 int main(int ac, char *av[])
 {
 {
-  int i, NumTests, testNum, partial_match;
+  int i, NumTests, testNum = 0, partial_match;
   char *arg, *test_name;
   char *arg, *test_name;
   int count;
   int count;
   int testToRun = -1;
   int testToRun = -1;
@@ -81,7 +81,6 @@ int main(int ac, char *av[])
       }
       }
     printf("To run a test, enter the test number: ");
     printf("To run a test, enter the test number: ");
     fflush(stdout);
     fflush(stdout);
-    testNum = 0;
     if( scanf("%d", &testNum) != 1 )
     if( scanf("%d", &testNum) != 1 )
       {
       {
       printf("Couldn't parse that input as a number\n");
       printf("Couldn't parse that input as a number\n");