Explorar o código

ERR: Fixed string literal->char* conversion warning.

Brad King %!s(int64=22) %!d(string=hai) anos
pai
achega
cbef9d224d
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      Source/cmake.cxx

+ 2 - 1
Source/cmake.cxx

@@ -80,7 +80,8 @@ cmake::cmake()
   // encode the MAKEFLAGS variable in a strange way.
   if(getenv("MAKEFLAGS"))
     {
-    putenv("MAKEFLAGS=");
+    static char makeflags[] = "MAKEFLAGS=";
+    putenv(makeflags);
     }  
   
   m_Local = false;