From e762d15d5fba6c8cf0c0e2abb27f4fa8c699322f Mon Sep 17 00:00:00 2001 From: Julian Seward Date: Thu, 23 Oct 2014 14:14:49 +0000 Subject: [PATCH] Add a bit of casting to avoid a compiler warning following recent const-ification. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14658 --- coregrind/m_syswrap/syswrap-darwin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.47.2