From ae9c58e03d466eb1d1aa886e2b215b663307b077 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 23 Jul 2014 12:41:41 -0700 Subject: [PATCH] client: fix compile warnings --- client/gpu_opencl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"); }