1
0
Эх сурвалжийг харах

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

Brad King 22 жил өмнө
parent
commit
cbef9d224d
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  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;