diff options
author | Brad King <brad.king@kitware.com> | 2005-04-13 20:55:47 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-04-13 20:55:47 (GMT) |
commit | 79c0487de9d7b966b5113799deed7244c7803a38 (patch) | |
tree | 9cfb88398082e5e5ca9c6af8bae3d1161526542b /Source/kwsys/testProcess.c | |
parent | 7297496a34de5ef2d02129b7be5ea1208a859bb0 (diff) | |
download | CMake-79c0487de9d7b966b5113799deed7244c7803a38.zip CMake-79c0487de9d7b966b5113799deed7244c7803a38.tar.gz CMake-79c0487de9d7b966b5113799deed7244c7803a38.tar.bz2 |
COMP: Removing return value from test6. It is an infinite loop, so the return causes warnings. It will never return anyway.
Diffstat (limited to 'Source/kwsys/testProcess.c')
-rw-r--r-- | Source/kwsys/testProcess.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/kwsys/testProcess.c b/Source/kwsys/testProcess.c index 16f7779..5229fe4 100644 --- a/Source/kwsys/testProcess.c +++ b/Source/kwsys/testProcess.c @@ -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; |