From d786780ccba33580128b9db853fe114fdc818df9 Mon Sep 17 00:00:00 2001 From: Dan Blezek Date: Fri, 5 Jan 2001 13:53:01 -0500 Subject: BUG: main can not be void under ANSI C++ --- Source/CMakeBuildTargets.cxx | 2 +- Source/CMakeSetupCMD.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/CMakeBuildTargets.cxx b/Source/CMakeBuildTargets.cxx index c87ecb7..15cd064 100644 --- a/Source/CMakeBuildTargets.cxx +++ b/Source/CMakeBuildTargets.cxx @@ -5,7 +5,7 @@ // This is the main program used to gentrate makefile fragments // from CMakeLists.txt input files. -main(int ac, char** av) +int main(int ac, char** av) { if(ac < 2) { diff --git a/Source/CMakeSetupCMD.cxx b/Source/CMakeSetupCMD.cxx index 8fecfad..fabae5a 100644 --- a/Source/CMakeSetupCMD.cxx +++ b/Source/CMakeSetupCMD.cxx @@ -39,7 +39,7 @@ void SetArgs(cmMakefile& builder, int ac, char** av) } -main(int ac, char** av) +int main(int ac, char** av) { if(ac < 3) { -- cgit v0.12