From b1443931b09d26cde75bd5cff613a3a39c6255e5 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 28 Feb 2006 11:38:02 -0500 Subject: COMP: Fixed warnings for Borland 5.8. --- Source/kwsys/ProcessWin32.c | 12 ++++++++---- 1 file 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; -- cgit v0.12