diff --git a/test/testcppcheck.cpp b/test/testcppcheck.cpp index f8a878cf4..7b6c4e4a0 100644 --- a/test/testcppcheck.cpp +++ b/test/testcppcheck.cpp @@ -347,7 +347,7 @@ private: void nonexistingpath() { CppCheckExecutor exec; - char *argv[] = { "", "idontexist" }; + const char *argv[] = { "", "idontexist" }; int retval = exec.check(2, argv); ASSERT_EQUALS(retval, EXIT_FAILURE);