summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-05-05 13:54:55 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-05-05 13:54:55 (GMT)
commiteb5fe7990a3106507e2981ad0aede9556e9a27ec (patch)
tree3354373b6abdf140cc647b2689cc351acc74b614
parenta2d7a92c88d23ae0566c647a61facb4f943b9a2f (diff)
downloadCMake-eb5fe7990a3106507e2981ad0aede9556e9a27ec.zip
CMake-eb5fe7990a3106507e2981ad0aede9556e9a27ec.tar.gz
CMake-eb5fe7990a3106507e2981ad0aede9556e9a27ec.tar.bz2
ERR: Remove warning for main returning void.
-rw-r--r--Modules/CheckIncludeFiles.cmake2
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}")