summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/SharedForward.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'Source/kwsys/SharedForward.h.in')
-rw-r--r--Source/kwsys/SharedForward.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/kwsys/SharedForward.h.in b/Source/kwsys/SharedForward.h.in
index 87f53dc..aab2ede 100644
--- a/Source/kwsys/SharedForward.h.in
+++ b/Source/kwsys/SharedForward.h.in
@@ -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