[cmake-developers] [PATCH 1/2] Fix deprecation warning about non-writeable strings
Gregor Jasny
gjasny at googlemail.com
Sat Mar 7 16:20:25 EST 2015
Signed-off-by: Gregor Jasny <gjasny at googlemail.com>
---
Tests/Environment/main.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Tests/Environment/main.cxx b/Tests/Environment/main.cxx
index 2e1bf4c..b54a664 100644
--- a/Tests/Environment/main.cxx
+++ b/Tests/Environment/main.cxx
@@ -3,7 +3,7 @@
int main(int argc, char *argv[])
{
- char* var = getenv("CMAKE_ENVIRONMENT_TEST_VAR");
+ const char* var = getenv("CMAKE_ENVIRONMENT_TEST_VAR");
if (!var)
{
var = "(null)";
--
2.3.0
More information about the cmake-developers
mailing list