diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-06-30 14:44:35 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-06-30 14:44:35 (GMT) |
commit | 1f5defbdcfd2f9e04267398c581376f57020fcf7 (patch) | |
tree | 497edec3b77023543c30acf369177e81f05b9e8f /Source/kwsys/ProcessFwd9x.c | |
parent | ef76ed76f8a31f706ee675160e5c57c34b608516 (diff) | |
download | CMake-1f5defbdcfd2f9e04267398c581376f57020fcf7.zip CMake-1f5defbdcfd2f9e04267398c581376f57020fcf7.tar.gz CMake-1f5defbdcfd2f9e04267398c581376f57020fcf7.tar.bz2 |
ERR: Remove warnings on Windows
Diffstat (limited to 'Source/kwsys/ProcessFwd9x.c')
-rw-r--r-- | Source/kwsys/ProcessFwd9x.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/kwsys/ProcessFwd9x.c b/Source/kwsys/ProcessFwd9x.c index a6a428a..0b88054 100644 --- a/Source/kwsys/ProcessFwd9x.c +++ b/Source/kwsys/ProcessFwd9x.c @@ -21,6 +21,9 @@ PURPOSE. See the above copyright notices for more information. Win32 implementation file for details. */ +#ifdef _MSC_VER +#pragma warning (push, 1) +#endif #include <windows.h> #include <stdio.h> @@ -121,7 +124,7 @@ int main() if(waitResult == WAIT_OBJECT_0) { /* We were asked to kill the child. */ - TerminateProcess(pi.hProcess, -1); + TerminateProcess(pi.hProcess, 255); WaitForSingleObject(pi.hProcess, INFINITE); CloseHandle(pi.hProcess); return 1; |