7b0a54b75bc9c960bfea4e12d314de63a5496055 hiram Fri Oct 2 13:16:42 2015 -0700 fixup gcc warnings for -Wunused-but-set-variable refs #16121 diff --git src/parasol/para/para.c src/parasol/para/para.c index 2f13a30..d04772b 100644 --- src/parasol/para/para.c +++ src/parasol/para/para.c @@ -1778,35 +1778,34 @@ job->submissionCount -= 1; job->submissionList = sub->next; ++count; } } } verbose(1, "Chilled %d jobs\n", count); return count; } void removeChilledSubmissions(char *batch) /* Remove submissions from job database if we * asked them to chill out. */ { struct jobDb *db = readBatch(batch); -int chillCount; markQueuedJobs(db); markRunJobStatus(db); -chillCount = cleanTrackingErrors(db); +(void) cleanTrackingErrors(db); // ignore returned chillCount atomicWriteBatch(db, batch); } void paraChill(char *batch) /* Tells system to not launch more jobs in this batch, but * does not stop jobs that are already running.\n */ { sendChillMessage(); removeChilledSubmissions(batch); } void paraStopAll(char *batch) /* Stop batch of jobs. */ { struct jobDb *db = readBatch(batch); @@ -1935,31 +1934,30 @@ struct job *job; for (job = db->jobList; job != NULL; job = job->next) { job->cpusUsed = newCpus; } atomicWriteBatch(db, batch); } void paraTimes(char *batch) /* Report times of run. */ { struct jobDb *db = readBatch(batch); double totalCpu = 0, totalWall = 0; double oneWall, longestWall = 0; struct job *job; -char *longestWallId = NULL; struct submission *sub; int jobCount = 0; int runningCount = 0; int timedCount = 0; int crashCount = 0; int queueCount = 0; double runTime = 0, longestRun = 0; int otherCount = 0; long now = time(NULL); double ioTime; markQueuedJobs(db); markRunJobStatus(db); for (job = db->jobList; job != NULL; job = job->next) { @@ -1988,31 +1986,30 @@ else if (sub->ranOk) { ++timedCount; totalCpu += sub->cpuTime; oneWall = subRealTime(sub); if (oneWall < 0) /* Protect against clock reset. */ { warn("End before start job %s host %s", sub->id, sub->host); warn("Start %u, End %u", sub->startTime, sub->endTime); oneWall = totalCpu; } totalWall += oneWall; if (oneWall > longestWall) { longestWall = oneWall; - longestWallId = sub->id; } } else { ++otherCount; } } } printf("Completed: %d of %d jobs\n", timedCount, jobCount); if (runningCount > 0) printf("Jobs currently running: %d\n", runningCount); if (crashCount > 0) printf("Crashed: %d jobs\n", crashCount); if (otherCount > 0)