summaryrefslogtreecommitdiff
path: root/Modules/CMakeTestCCompiler.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2009-06-22 10:02:51 -0400
committerBill Hoffman <bill.hoffman@kitware.com>2009-06-22 10:02:51 -0400
commit34744b6bc0084a4b2319cff7e8da5fe36e51da2a (patch)
tree4e10d09dd11a4278b4ec1b65f8a3f1470057f73e /Modules/CMakeTestCCompiler.cmake
parentd05a2baf6c208d7d0bc335321c63550919a5f5b1 (diff)
downloadcmake-34744b6bc0084a4b2319cff7e8da5fe36e51da2a.tar.gz
BUG: remove warning in test of compiler so -Werror does not fail
Diffstat (limited to 'Modules/CMakeTestCCompiler.cmake')
-rw-r--r--Modules/CMakeTestCCompiler.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeTestCCompiler.cmake b/Modules/CMakeTestCCompiler.cmake
index 00167ccd43..912f309ba9 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)