COMP: Removing return value from test6. It is an infinite loop, so the return causes warnings. It will never return anyway.

This commit is contained in:
Brad King 2005-04-13 16:55:47 -04:00
parent 7297496a34
commit 79c0487de9

View File

@ -106,7 +106,7 @@ int test5(int argc, const char* argv[])
}
#define TEST6_SIZE (4096*2)
int test6(int argc, const char* argv[])
void test6(int argc, const char* argv[])
{
int i;
char runaway[TEST6_SIZE+1];
@ -123,7 +123,6 @@ int test6(int argc, const char* argv[])
fwrite(runaway, 1, TEST6_SIZE+1, stdout);
fflush(stdout);
}
return 0;
}
@ -261,7 +260,7 @@ int main(int argc, const char* argv[])
case 3: return test3(argc, argv);
case 4: return test4(argc, argv);
case 5: return test5(argc, argv);
case 6: return test6(argc, argv);
case 6: test6(argc, argv); return 0;
}
fprintf(stderr, "Invalid test number %d.\n", n);
return 1;