[Cmake-commits] [cmake-commits] king committed SharedForward.h.in 1.10 1.11
cmake-commits at cmake.org
cmake-commits at cmake.org
Sat Sep 27 08:04:15 EDT 2008
Update of /cvsroot/CMake/CMake/Source/kwsys
In directory public:/mounts/ram/cvs-serv10433/Source/kwsys
Modified Files:
SharedForward.h.in
Log Message:
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.
Index: SharedForward.h.in
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/kwsys/SharedForward.h.in,v
retrieving revision 1.10
retrieving revision 1.11
diff -C 2 -d -r1.10 -r1.11
*** SharedForward.h.in 26 Sep 2008 12:24:25 -0000 1.10
--- SharedForward.h.in 27 Sep 2008 12:04:13 -0000 1.11
***************
*** 513,516 ****
--- 513,519 ----
#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);
More information about the Cmake-commits
mailing list