summaryrefslogtreecommitdiffstats
path: root/Source/cmWin32ProcessExecution.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-08-01 15:38:42 (GMT)
committerBrad King <brad.king@kitware.com>2006-08-01 15:38:42 (GMT)
commitab61137eb177d9606ad3fa47b6b08d22b9993279 (patch)
treece57b66cd29b6dc1dab00d196eeeda84e8ef82a2 /Source/cmWin32ProcessExecution.cxx
parent7776d18896bda01c743317dd45fd5c816e8f408a (diff)
downloadCMake-ab61137eb177d9606ad3fa47b6b08d22b9993279.zip
CMake-ab61137eb177d9606ad3fa47b6b08d22b9993279.tar.gz
CMake-ab61137eb177d9606ad3fa47b6b08d22b9993279.tar.bz2
COMP: Fix and/or disable warnings for Borland 5.6 build.
Diffstat (limited to 'Source/cmWin32ProcessExecution.cxx')
-rw-r--r--Source/cmWin32ProcessExecution.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/cmWin32ProcessExecution.cxx b/Source/cmWin32ProcessExecution.cxx
index 88b0127..ed7b1ea 100644
--- a/Source/cmWin32ProcessExecution.cxx
+++ b/Source/cmWin32ProcessExecution.cxx
@@ -293,14 +293,14 @@ static BOOL RealPopenCreateProcess(const char *cmdstring,
PROCESS_INFORMATION piProcInfo;
STARTUPINFO siStartInfo;
char *s1=0,*s2=0, *s3 = " /c ";
- int i;
- int x;
- if (i = GetEnvironmentVariable("COMSPEC",NULL,0))
+ int i = GetEnvironmentVariable("COMSPEC",NULL,0);
+ if (i)
{
char *comshell;
s1 = (char *)malloc(i);
- if (!(x = GetEnvironmentVariable("COMSPEC", s1, i)))
+ int x = GetEnvironmentVariable("COMSPEC", s1, i);
+ if (!x)
{
free(s1);
return x;
@@ -607,7 +607,7 @@ bool cmWin32ProcessExecution::PrivateOpen(const char *cmdstring,
case POPEN_2:
case POPEN_4:
- if ( 1 )
+ //if ( 1 )
{
fd1 = _open_osfhandle(TO_INTPTR(this->hChildStdinWrDup), mode);
fd2 = _open_osfhandle(TO_INTPTR(this->hChildStdoutRdDup), mode);
@@ -615,7 +615,7 @@ bool cmWin32ProcessExecution::PrivateOpen(const char *cmdstring,
}
case POPEN_3:
- if ( 1)
+ //if ( 1)
{
fd1 = _open_osfhandle(TO_INTPTR(this->hChildStdinWrDup), mode);
fd2 = _open_osfhandle(TO_INTPTR(this->hChildStdoutRdDup), mode);