Browse Source

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

Brad King 23 years ago
parent
commit
cbef9d224d
1 changed files with 2 additions and 1 deletions
  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;