mirror of https://github.com/BOINC/boinc.git
- fix compile warnings
svn path=/trunk/boinc/; revision=24212
This commit is contained in:
parent
f6cd51fe72
commit
4f21108bc2
|
@ -234,14 +234,14 @@ void COPROCS::get_opencl(bool use_all, vector<string>&warnings,
|
|||
if (ciErrNum != CL_SUCCESS) break;
|
||||
|
||||
if (strstr(prop.vendor, GPU_TYPE_NVIDIA)) {
|
||||
prop.device_num = nvidia_opencls.size();
|
||||
prop.device_num = (int)(nvidia_opencls.size());
|
||||
nvidia_opencls.push_back(prop);
|
||||
}
|
||||
if ((strstr(prop.vendor, GPU_TYPE_ATI)) ||
|
||||
(strstr(prop.vendor, "AMD")) ||
|
||||
(strstr(prop.vendor, "Advanced Micro Devices, Inc."))
|
||||
) {
|
||||
prop.device_num = ati_opencls.size();
|
||||
prop.device_num = (int)(ati_opencls.size());
|
||||
ati_opencls.push_back(prop);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -255,9 +255,9 @@ void NOTICES::init_rss() {
|
|||
// sort by decreasing arrival time, then assign seqnos
|
||||
//
|
||||
sort(notices.begin(), notices.end(), cmp);
|
||||
unsigned int n = notices.size();
|
||||
size_t n = notices.size();
|
||||
for (unsigned int i=0; i<n; i++) {
|
||||
notices[i].seqno = n - i;
|
||||
notices[i].seqno = (int)(n - i);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -508,7 +508,7 @@ void NOTICES::remove_network_msg() {
|
|||
// Write them in order of increasing seqno
|
||||
//
|
||||
void NOTICES::write(int seqno, GUI_RPC_CONN& grpc, MIOFILE& fout, bool public_only) {
|
||||
unsigned int i;
|
||||
size_t i;
|
||||
MIOFILE mf;
|
||||
|
||||
if (!net_status.need_physical_connection) {
|
||||
|
|
Loading…
Reference in New Issue