mirror of https://github.com/BOINC/boinc.git
client: fix compile warnings
This commit is contained in:
parent
3156ea56fd
commit
dcb72145e1
|
@ -263,7 +263,7 @@ void COPROCS::correlate_gpus(
|
||||||
// TODO: Should we implement cc_config ignore vectors for other (future) OpenCL coprocessors?
|
// TODO: Should we implement cc_config ignore vectors for other (future) OpenCL coprocessors?
|
||||||
|
|
||||||
for (i=0; i<other_opencls.size(); i++) {
|
for (i=0; i<other_opencls.size(); i++) {
|
||||||
if (i > max_other_coprocs) {
|
if ((int)i > max_other_coprocs) {
|
||||||
other_opencls[i].is_used = COPROC_UNUSED;
|
other_opencls[i].is_used = COPROC_UNUSED;
|
||||||
}
|
}
|
||||||
other_opencls[i].description(buf, sizeof(buf), other_opencls[i].name);
|
other_opencls[i].description(buf, sizeof(buf), other_opencls[i].name);
|
||||||
|
@ -292,7 +292,7 @@ void COPROCS::correlate_gpus(
|
||||||
int COPROCS::add_other_coproc_types() {
|
int COPROCS::add_other_coproc_types() {
|
||||||
int retval = 0;
|
int retval = 0;
|
||||||
|
|
||||||
for (int i=0; i<other_opencls.size(); i++) {
|
for (unsigned int i=0; i<other_opencls.size(); i++) {
|
||||||
if (other_opencls[i].is_used != COPROC_USED) continue;
|
if (other_opencls[i].is_used != COPROC_USED) continue;
|
||||||
if (n_rsc >= MAX_RSC) {
|
if (n_rsc >= MAX_RSC) {
|
||||||
retval = ERR_BUFFER_OVERFLOW;
|
retval = ERR_BUFFER_OVERFLOW;
|
||||||
|
|
Loading…
Reference in New Issue