Browse Source

BUG: main can not be void under ANSI C++

Dan Blezek 25 years ago
parent
commit
d786780ccb
2 changed files with 2 additions and 2 deletions
  1. 1 1
      Source/CMakeBuildTargets.cxx
  2. 1 1
      Source/CMakeSetupCMD.cxx

+ 1 - 1
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)
     {

+ 1 - 1
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)
     {