summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2009-06-22 14:02:51 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2009-06-22 14:02:51 (GMT)
commit34744b6bc0084a4b2319cff7e8da5fe36e51da2a (patch)
tree4e10d09dd11a4278b4ec1b65f8a3f1470057f73e /Modules
parentd05a2baf6c208d7d0bc335321c63550919a5f5b1 (diff)
downloadCMake-34744b6bc0084a4b2319cff7e8da5fe36e51da2a.zip
CMake-34744b6bc0084a4b2319cff7e8da5fe36e51da2a.tar.gz
CMake-34744b6bc0084a4b2319cff7e8da5fe36e51da2a.tar.bz2
BUG: remove warning in test of compiler so -Werror does not fail
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakeTestCCompiler.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeTestCCompiler.cmake b/Modules/CMakeTestCCompiler.cmake
index 00167cc..912f309 100644
--- a/Modules/CMakeTestCCompiler.cmake
+++ b/Modules/CMakeTestCCompiler.cmake
@@ -17,7 +17,7 @@ IF(NOT CMAKE_C_COMPILER_WORKS)
"#else\n"
"int main(int argc, char* argv[])\n"
"#endif\n"
- "{ return argc-1;}\n")
+ "{ (void)argv; return argc-1;}\n")
TRY_COMPILE(CMAKE_C_COMPILER_WORKS ${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/testCCompiler.c
OUTPUT_VARIABLE OUTPUT)