summaryrefslogtreecommitdiff
path: root/src/output/plugins/ShoutOutputPlugin.cxx
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-03-11 23:43:06 -0700
committerRosen Penev <rosenp@gmail.com>2020-03-12 12:59:16 -0700
commitf00f8b002ae3a1b716eec30368aecf2438870d64 (patch)
tree4878729e5e33c7d0f0d5b2cafc9a08e57dde6878 /src/output/plugins/ShoutOutputPlugin.cxx
parent2229e866730646cbc8334c598d3b6651ade4cf3e (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/output/plugins/ShoutOutputPlugin.cxx')
-rw-r--r--src/output/plugins/ShoutOutputPlugin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/output/plugins/ShoutOutputPlugin.cxx b/src/output/plugins/ShoutOutputPlugin.cxx
index 36f8bb8c9..919a5684a 100644
--- a/src/output/plugins/ShoutOutputPlugin.cxx
+++ b/src/output/plugins/ShoutOutputPlugin.cxx
@@ -57,7 +57,7 @@ struct ShoutOutput final : AudioOutput {
void Open(AudioFormat &audio_format) override;
void Close() noexcept override;
- std::chrono::steady_clock::duration Delay() const noexcept override;
+ [[nodiscard]] std::chrono::steady_clock::duration Delay() const noexcept override;
void SendTag(const Tag &tag) override;
size_t Play(const void *chunk, size_t size) override;
void Cancel() noexcept override;