diff options
author | Brad King <brad.king@kitware.com> | 2006-02-28 16:38:02 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-02-28 16:38:02 (GMT) |
commit | b1443931b09d26cde75bd5cff613a3a39c6255e5 (patch) | |
tree | 5877d1b27688e87e6770055a88dffd8dfb18edd1 /Source/kwsys/ProcessWin32.c | |
parent | b5b06cfaf6205be048c849ac0fae1da2a8e32137 (diff) | |
download | CMake-b1443931b09d26cde75bd5cff613a3a39c6255e5.zip CMake-b1443931b09d26cde75bd5cff613a3a39c6255e5.tar.gz CMake-b1443931b09d26cde75bd5cff613a3a39c6255e5.tar.bz2 |
COMP: Fixed warnings for Borland 5.8.
Diffstat (limited to 'Source/kwsys/ProcessWin32.c')
-rw-r--r-- | Source/kwsys/ProcessWin32.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Source/kwsys/ProcessWin32.c b/Source/kwsys/ProcessWin32.c index 9a0b6eb..c368d27 100644 --- a/Source/kwsys/ProcessWin32.c +++ b/Source/kwsys/ProcessWin32.c @@ -62,6 +62,10 @@ Q190351 and Q150956. #pragma warning (disable: 4706) #endif +#if defined(__BORLANDC__) +# pragma warn -8060 /* Assignment inside if() condition. */ +#endif + /* There are pipes for the process pipeline's stdout and stderr. */ #define KWSYSPE_PIPE_COUNT 2 #define KWSYSPE_PIPE_STDOUT 0 @@ -107,7 +111,7 @@ static int kwsysProcessGetTimeoutTime(kwsysProcess* cp, double* userTimeout, static int kwsysProcessGetTimeoutLeft(kwsysProcessTime* timeoutTime, double* userTimeout, kwsysProcessTime* timeoutLength); -static kwsysProcessTime kwsysProcessTimeGetCurrent(); +static kwsysProcessTime kwsysProcessTimeGetCurrent(void); static DWORD kwsysProcessTimeToDWORD(kwsysProcessTime t); static double kwsysProcessTimeToDouble(kwsysProcessTime t); static kwsysProcessTime kwsysProcessTimeFromDouble(double d); @@ -293,7 +297,7 @@ struct kwsysProcess_s }; /*--------------------------------------------------------------------------*/ -kwsysProcess* kwsysProcess_New() +kwsysProcess* kwsysProcess_New(void) { int i; @@ -2348,7 +2352,7 @@ static void kwsysProcessSetExitException(kwsysProcess* cp, int code) #undef KWSYSPE_CASE typedef struct kwsysProcess_List_s kwsysProcess_List; -static kwsysProcess_List* kwsysProcess_List_New(); +static kwsysProcess_List* kwsysProcess_List_New(void); static void kwsysProcess_List_Delete(kwsysProcess_List* self); static int kwsysProcess_List_Update(kwsysProcess_List* self); static int kwsysProcess_List_NextProcess(kwsysProcess_List* self); @@ -2449,7 +2453,7 @@ struct kwsysProcess_List_s }; /*--------------------------------------------------------------------------*/ -static kwsysProcess_List* kwsysProcess_List_New() +static kwsysProcess_List* kwsysProcess_List_New(void) { OSVERSIONINFO osv; kwsysProcess_List* self; |