diff options
author | Jan Niklas Hasse <[email protected]> | 2020-10-20 18:33:53 +0200 |
---|---|---|
committer | Jan Niklas Hasse <[email protected]> | 2020-10-20 18:33:53 +0200 |
commit | bd9d5d7bf0f67701303e0f68df049695cc7122f3 (patch) | |
tree | 24214ac07b3f4b1d6dc940b92923a05417bf5336 /alc | |
parent | 95ea5951b18e058236c6589b893298b0655eb072 (diff) |
Silence warning about unused return values
warning C4834: discarding return value of function with 'nodiscard'
attribute
Diffstat (limited to 'alc')
-rw-r--r-- | alc/hrtf.cpp | 4 | ||||
-rw-r--r-- | alc/panning.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/alc/hrtf.cpp b/alc/hrtf.cpp index 5633c82c..38815ea6 100644 --- a/alc/hrtf.cpp +++ b/alc/hrtf.cpp @@ -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); 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); /* 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; }; - 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(delays_.begin() == delays_end); diff --git a/alc/panning.cpp b/alc/panning.cpp index 964d56e8..ad4ba32e 100644 --- a/alc/panning.cpp +++ b/alc/panning.cpp @@ -976,7 +976,7 @@ void aluInitRenderer(ALCdevice *device, int hrtf_id, HrtfRequestMode hrtf_appreq device->HrtfName = hrtfname; 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) |