Sfoglia il codice sorgente

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

Brad King 22 anni fa
parent
commit
cbef9d224d
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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;