summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/ProcessUNIX.c
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2009-10-19 16:57:36 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2009-10-19 16:57:36 (GMT)
commit5e2851f855b9827a68739f286228e8ed39ed854d (patch)
tree348dced4d5781f41058377043c96504628f0420a /Source/kwsys/ProcessUNIX.c
parent7766473d3eb71937a7fa783fb5a29ae1f6fb6a47 (diff)
downloadCMake-5e2851f855b9827a68739f286228e8ed39ed854d.zip
CMake-5e2851f855b9827a68739f286228e8ed39ed854d.tar.gz
CMake-5e2851f855b9827a68739f286228e8ed39ed854d.tar.bz2
fix two more icpc warnings, ok by Brad (float compared for equality, unused variable)
Alex
Diffstat (limited to 'Source/kwsys/ProcessUNIX.c')
-rw-r--r--Source/kwsys/ProcessUNIX.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/kwsys/ProcessUNIX.c b/Source/kwsys/ProcessUNIX.c
index 22135fe..e2935eb 100644
--- a/Source/kwsys/ProcessUNIX.c
+++ b/Source/kwsys/ProcessUNIX.c
@@ -1921,7 +1921,7 @@ static int kwsysProcessGetTimeoutTime(kwsysProcess* cp, double* userTimeout,
{
/* The first time this is called, we need to calculate the time at
which the child will timeout. */
- if(cp->Timeout && cp->TimeoutTime.tv_sec < 0)
+ if(cp->Timeout > 0 && cp->TimeoutTime.tv_sec < 0)
{
kwsysProcessTime length = kwsysProcessTimeFromDouble(cp->Timeout);
cp->TimeoutTime = kwsysProcessTimeAdd(cp->StartTime, length);
@@ -2710,7 +2710,7 @@ static void kwsysProcessesSignalHandler(int signum
kwsysProcess_ssize_t status=
read(cp->PipeReadEnds[KWSYSPE_PIPE_SIGNAL], &buf, 1);
status=write(cp->SignalPipe, &buf, 1);
-
+ (void)status;
}
}