浏览代码

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

Brad King 22 年之前
父节点
当前提交
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;