COMP: Avoid incompatible pointer warning

In SharedForward, the call to execvp warned on MinGW because the
signature declared in process.h has an extra const.  We use an explicit
cast to convert the pointer type.
This commit is contained in:
Brad King 2008-09-27 08:04:13 -04:00
parent f01df7fa3d
commit 734ef07548

View File

@ -512,6 +512,9 @@ static void kwsys_shared_forward_execvp(const char* cmd, char* const* argv)
/* Invoke the child process. */
#if defined(_MSC_VER)
_execvp(cmd, argv);
#elif defined(__MINGW32__)
/* Avoid incompatible pointer warning with a cast. */
execvp(cmd, (char const* const*)argv);
#else
execvp(cmd, argv);
#endif