From 234fe9c7ff1a3a6626f04ae3227eef5996a8b3fd Mon Sep 17 00:00:00 2001 From: macbishop Date: Sat, 15 Jan 2011 17:32:08 +0000 Subject: [PATCH] Added explicit cast to supress warning about deprecated conversion from string constant to char* --- examples/test10.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/test10.cpp b/examples/test10.cpp index 6ef71c4..8425854 100644 --- a/examples/test10.cpp +++ b/examples/test10.cpp @@ -6,7 +6,7 @@ using namespace TCLAP; int main() { - char *argv5[] = {"Foo", 0}; + char *argv5[] = {(char*)"Foo", 0}; const char *argv6[] = {"Foo", 0}; const char * const argv7[] = {"Foo", 0}; char **argv1 = argv5;