diff --git a/client/gpu_opencl.cpp b/client/gpu_opencl.cpp index f50ca414aa..2ba3a14b92 100644 --- a/client/gpu_opencl.cpp +++ b/client/gpu_opencl.cpp @@ -536,7 +536,7 @@ void COPROCS::get_opencl( // to differentiate among OpenCL devices from the same vendor. It is // used by boinc_get_opencl_ids() to select the correct OpenCL device. int opencl_device_index = 0; - for (int coproc_index=0; coproc_index 0) || nvidia.have_cuda) max_other_coprocs--; if ((ati_opencls.size() > 0) || ati.have_cal) max_other_coprocs--; if (intel_gpu_opencls.size() > 0) max_other_coprocs--; - if (other_opencls.size() > max_other_coprocs) { + if ((int)other_opencls.size() > max_other_coprocs) { warnings.push_back("Too many OpenCL device types found"); }