mirror of
https://github.com/reactos/CMake.git
synced 2025-02-25 14:41:16 +00:00
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:
parent
f01df7fa3d
commit
734ef07548
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user