diff options
author | Brad King <brad.king@kitware.com> | 2003-11-04 14:00:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-11-04 14:00:18 (GMT) |
commit | 37bbb27bfaba02f7dfc93e5cf7694366206ca9c5 (patch) | |
tree | 5a54e431aa5832d32bcf6e5c57657b48aa1b5ef1 /Source | |
parent | 8f8cc16ea3b96faad38c76a9f062bcd89d0b5877 (diff) | |
download | CMake-37bbb27bfaba02f7dfc93e5cf7694366206ca9c5.zip CMake-37bbb27bfaba02f7dfc93e5cf7694366206ca9c5.tar.gz CMake-37bbb27bfaba02f7dfc93e5cf7694366206ca9c5.tar.bz2 |
ERR: Removed extra variable assignments.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/kwsys/ProcessWin32.c | 6 | ||||
-rw-r--r-- | Source/kwsys/RegularExpression.cxx | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/Source/kwsys/ProcessWin32.c b/Source/kwsys/ProcessWin32.c index 0749238..1253faa 100644 --- a/Source/kwsys/ProcessWin32.c +++ b/Source/kwsys/ProcessWin32.c @@ -696,7 +696,7 @@ const char* kwsysProcess_GetErrorString(kwsysProcess* cp) /*--------------------------------------------------------------------------*/ void kwsysProcess_Execute(kwsysProcess* cp) { - int i=0; + int i; /* Windows child startup control data. */ STARTUPINFO si; @@ -870,7 +870,6 @@ int kwsysProcess_WaitForData(kwsysProcess* cp, int pipes, char** data, int* leng { /* Timeout has already expired. */ expired = 1; - done = 1; break; } if(timeoutTime.QuadPart < 0) @@ -1001,7 +1000,7 @@ int kwsysProcess_WaitForData(kwsysProcess* cp, int pipes, char** data, int* leng int kwsysProcess_WaitForExit(kwsysProcess* cp, double* userTimeout) { int i; - int pipe = 0; + int pipe; /* Make sure we are executing a process. */ if(cp->State != kwsysProcess_State_Executing) @@ -1314,7 +1313,6 @@ void kwsysProcessCleanErrorMessage(kwsysProcess* cp) if(length > 0 && cp->ErrorMessage[length-1] == '.') { cp->ErrorMessage[length-1] = 0; - --length; } } diff --git a/Source/kwsys/RegularExpression.cxx b/Source/kwsys/RegularExpression.cxx index 451237c..22e8e55 100644 --- a/Source/kwsys/RegularExpression.cxx +++ b/Source/kwsys/RegularExpression.cxx @@ -769,7 +769,7 @@ static void reginsert (char op, char* opnd) { place = opnd; // Op node, where operand used to be. *place++ = op; *place++ = '\0'; - *place++ = '\0'; + *place = '\0'; } |