Merge pull request #483 from jhasse/silence-nodiscard
Silence warning about unused return values
This commit is contained in:
commit
1acfd11635
@ -895,7 +895,7 @@ std::unique_ptr<HrtfStore> LoadHrtf02(std::istream &data, const char *filename)
|
|||||||
elevs__end = std::copy_backward(elevs_src, elevs_src+field.evCount, elevs__end);
|
elevs__end = std::copy_backward(elevs_src, elevs_src+field.evCount, elevs__end);
|
||||||
return ebase + field.evCount;
|
return ebase + field.evCount;
|
||||||
};
|
};
|
||||||
std::accumulate(fields.cbegin(), fields.cend(), ptrdiff_t{0}, copy_azs);
|
(void)std::accumulate(fields.cbegin(), fields.cend(), ptrdiff_t{0}, copy_azs);
|
||||||
assert(elevs_.begin() == elevs__end);
|
assert(elevs_.begin() == elevs__end);
|
||||||
|
|
||||||
/* Reestablish the IR offset for each elevation index, given the new
|
/* Reestablish the IR offset for each elevation index, given the new
|
||||||
@ -930,7 +930,7 @@ std::unique_ptr<HrtfStore> LoadHrtf02(std::istream &data, const char *filename)
|
|||||||
|
|
||||||
return ebase + field.evCount;
|
return ebase + field.evCount;
|
||||||
};
|
};
|
||||||
std::accumulate(fields.cbegin(), fields.cend(), ptrdiff_t{0}, copy_irs);
|
(void)std::accumulate(fields.cbegin(), fields.cend(), ptrdiff_t{0}, copy_irs);
|
||||||
assert(coeffs_.begin() == coeffs_end);
|
assert(coeffs_.begin() == coeffs_end);
|
||||||
assert(delays_.begin() == delays_end);
|
assert(delays_.begin() == delays_end);
|
||||||
|
|
||||||
|
@ -976,7 +976,7 @@ void aluInitRenderer(ALCdevice *device, int hrtf_id, HrtfRequestMode hrtf_appreq
|
|||||||
device->HrtfName = hrtfname;
|
device->HrtfName = hrtfname;
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
std::find_if(device->HrtfList.cbegin(), device->HrtfList.cend(), find_hrtf);
|
(void)std::find_if(device->HrtfList.cbegin(), device->HrtfList.cend(), find_hrtf);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(device->mHrtf)
|
if(device->mHrtf)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user