[Cmake-commits] [cmake-commits] hoffman committed CMakeTestCCompiler.cmake 1.26 1.27

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Jun 22 10:02:56 EDT 2009


Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv22510

Modified Files:
	CMakeTestCCompiler.cmake 
Log Message:
BUG: remove warning in test of compiler so -Werror does not fail


Index: CMakeTestCCompiler.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/CMakeTestCCompiler.cmake,v
retrieving revision 1.26
retrieving revision 1.27
diff -C 2 -d -r1.26 -r1.27
*** CMakeTestCCompiler.cmake	18 Apr 2009 18:37:03 -0000	1.26
--- CMakeTestCCompiler.cmake	22 Jun 2009 14:02:51 -0000	1.27
***************
*** 18,22 ****
      "int main(int argc, char* argv[])\n"
      "#endif\n"
!     "{ return argc-1;}\n")
    TRY_COMPILE(CMAKE_C_COMPILER_WORKS ${CMAKE_BINARY_DIR} 
      ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/testCCompiler.c
--- 18,22 ----
      "int main(int argc, char* argv[])\n"
      "#endif\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



More information about the Cmake-commits mailing list