diff options
author | Rosen Penev <rosenp@gmail.com> | 2020-03-11 23:43:06 -0700 |
---|---|---|
committer | Rosen Penev <rosenp@gmail.com> | 2020-03-12 12:59:16 -0700 |
commit | f00f8b002ae3a1b716eec30368aecf2438870d64 (patch) | |
tree | 4878729e5e33c7d0f0d5b2cafc9a08e57dde6878 /src/pcm | |
parent | 2229e866730646cbc8334c598d3b6651ade4cf3e (diff) |
[clang-tidy] use nodiscard
Introduced in C++17. It replaces gcc's warn_unused_result.
Found with modernize-use-nodiscard.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'src/pcm')
-rw-r--r-- | src/pcm/Mix.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcm/Mix.hxx b/src/pcm/Mix.hxx index 7dc5cacd1..745c1e6f5 100644 --- a/src/pcm/Mix.hxx +++ b/src/pcm/Mix.hxx @@ -44,7 +44,7 @@ class PcmDither; * * @return true on success, false if the format is not supported */ -gcc_warn_unused_result +[[nodiscard]] bool pcm_mix(PcmDither &dither, void *buffer1, const void *buffer2, size_t size, SampleFormat format, float portion1) noexcept; |