Skip to content
Snippets Groups Projects
Commit a1a6712b authored by Brad King's avatar Brad King
Browse files

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.
parent 36085891
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -7,4 +7,4 @@ SET(KWSYS_DATE_STAMP_YEAR 2008)
SET(KWSYS_DATE_STAMP_MONTH 09)
# KWSys version date day component. Format is DD.
SET(KWSYS_DATE_STAMP_DAY 26)
SET(KWSYS_DATE_STAMP_DAY 27)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment