mirror of https://github.com/BOINC/boinc.git
scheduler: fix scrutinizer warnings
This commit is contained in:
parent
14f75463e5
commit
829960bc56
|
@ -153,7 +153,7 @@ bool JOB::get_score(int array_index) {
|
|||
return true;
|
||||
}
|
||||
|
||||
bool job_compare(JOB j1, JOB j2) {
|
||||
bool job_compare(JOB &j1, JOB &j2) {
|
||||
return (j1.score > j2.score);
|
||||
}
|
||||
|
||||
|
|
|
@ -117,6 +117,7 @@ void get_buda_plan_classes(vector<string> &pcs) {
|
|||
strip_whitespace(buf);
|
||||
pcs.push_back(buf);
|
||||
}
|
||||
boinc::fclose(f);
|
||||
}
|
||||
|
||||
// scan various DB tables and populate shared-memory arrays
|
||||
|
|
Loading…
Reference in New Issue