Fix 'deprecated conversion of string literal to char*' warning with GCC 4.2

This commit is contained in:
Gustavo J. A. M. Carneiro
2008-03-15 16:26:39 +00:00
parent 516eb971a3
commit b68fa9919b

View File

@@ -274,7 +274,7 @@ void
CommandLineTest::Parse (const CommandLine &cmd, int n, ...)
{
char **args = new char* [n+1];
args[0] = "Test";
args[0] = (char *) "Test";
va_list ap;
va_start (ap, n);
int i = 0;