Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix test program for va_copy().
[simgrid.git] / buildtools / Cmake / CompleteInFiles.cmake
index 39bab45..94271ab 100644 (file)
@@ -556,9 +556,9 @@ foreach(fct ${diff_va})
            }
            va_end(ap);
        }
-       int main(int argc, char *argv[])
+       int main(void)
        {
-           test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
+           test(\"test\", 1, 2, 3, 4, 5, 6, 7, 8, 9);
            exit(0);
        }"
        )
@@ -698,7 +698,7 @@ endif(ADDR2LINE)
 ### Check if OSX can compile with ucontext (with gcc 4.[1-5] it is broken)
 if(APPLE)
     if(APPLE_NEED_GCC_VERSION GREATER COMPILER_C_VERSION_MAJOR_MINOR)
-        message(STATUS "Ucontext can't be used with this version of gcc (must be greater than 4.5")
+        message(STATUS "Ucontext can't be used with this version of gcc (must be greater than 4.5)")
         set(HAVE_UCONTEXT_H 0)
     endif(APPLE_NEED_GCC_VERSION GREATER COMPILER_C_VERSION_MAJOR_MINOR)
 endif(APPLE)