diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-05-05 13:54:55 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-05-05 13:54:55 (GMT) |
commit | eb5fe7990a3106507e2981ad0aede9556e9a27ec (patch) | |
tree | 3354373b6abdf140cc647b2689cc351acc74b614 | |
parent | a2d7a92c88d23ae0566c647a61facb4f943b9a2f (diff) | |
download | CMake-eb5fe7990a3106507e2981ad0aede9556e9a27ec.zip CMake-eb5fe7990a3106507e2981ad0aede9556e9a27ec.tar.gz CMake-eb5fe7990a3106507e2981ad0aede9556e9a27ec.tar.bz2 |
ERR: Remove warning for main returning void.
-rw-r--r-- | Modules/CheckIncludeFiles.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CheckIncludeFiles.cmake b/Modules/CheckIncludeFiles.cmake index 3b43ba3..b3fdf96 100644 --- a/Modules/CheckIncludeFiles.cmake +++ b/Modules/CheckIncludeFiles.cmake @@ -17,7 +17,7 @@ MACRO(CHECK_INCLUDE_FILES INCLUDE VARIABLE) "${CHECK_INCLUDE_FILES_CONTENT}${POUND}include <${FILE}>\n") ENDFOREACH(FILE) SET(CHECK_INCLUDE_FILES_CONTENT - "${CHECK_INCLUDE_FILES_CONTENT}\n\nvoid main${PARENTS}{}\n") + "${CHECK_INCLUDE_FILES_CONTENT}\n\nint main${PARENTS}{return 0;}\n") WRITE_FILE(${CMAKE_BINARY_DIR}/CMakeTmp/CheckIncludeFiles.c "${CHECK_INCLUDE_FILES_CONTENT}") |