]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add a bit of casting to avoid a compiler warning following recent
authorJulian Seward <jseward@acm.org>
Thu, 23 Oct 2014 14:14:49 +0000 (14:14 +0000)
committerJulian Seward <jseward@acm.org>
Thu, 23 Oct 2014 14:14:49 +0000 (14:14 +0000)
const-ification.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14658

coregrind/m_syswrap/syswrap-darwin.c

index 6c6cc43d45e6f92e340bd3d08bd0587a96ffa5c8..7351e061a5d630ad0195c64b59708b9f87625d55 100644 (file)
@@ -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 );