From: Julian Seward Date: Thu, 23 Oct 2014 14:14:49 +0000 (+0000) Subject: Add a bit of casting to avoid a compiler warning following recent X-Git-Tag: svn/VALGRIND_3_11_0~890 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e762d15d5fba6c8cf0c0e2abb27f4fa8c699322f;p=thirdparty%2Fvalgrind.git Add a bit of casting to avoid a compiler warning following recent const-ification. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14658 --- diff --git a/coregrind/m_syswrap/syswrap-darwin.c b/coregrind/m_syswrap/syswrap-darwin.c index 6c6cc43d45..7351e061a5 100644 --- a/coregrind/m_syswrap/syswrap-darwin.c +++ b/coregrind/m_syswrap/syswrap-darwin.c @@ -2936,7 +2936,7 @@ PRE(posix_spawn) // Decide whether or not we want to follow along { // Make 'child_argv' be a pointer to the child's arg vector // (skipping the exe name) - HChar** child_argv = (HChar**)ARG4; + const HChar** child_argv = (const HChar**)ARG4; if (child_argv && child_argv[0] == NULL) child_argv = NULL; trace_this_child = VG_(should_we_trace_this_child)( (HChar*)ARG2, child_argv );