diff options
author | Rosen Penev <rosenp@gmail.com> | 2020-03-12 12:56:11 -0700 |
---|---|---|
committer | Rosen Penev <rosenp@gmail.com> | 2020-03-16 00:08:21 -0700 |
commit | 97425d56e7ad0ce19357b5d8984de082c0dacffc (patch) | |
tree | ceff26b07d79daa4fd2f93f2d37007f1f52de8f3 /test/DumpDecoderClient.cxx | |
parent | 0afb156a5bbb23a9602ef3b8188e82e4afe300e4 (diff) |
remove gcc_unused
[[maybe_unused]] (introduced in C++17) is standard C++.
https://clang.llvm.org/docs/AttributeReference.html#maybe-unused-unused
says that this is equivalent to the GNU unused attribute.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'test/DumpDecoderClient.cxx')
-rw-r--r-- | test/DumpDecoderClient.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/DumpDecoderClient.cxx b/test/DumpDecoderClient.cxx index 75a8c44e3..f107cc53a 100644 --- a/test/DumpDecoderClient.cxx +++ b/test/DumpDecoderClient.cxx @@ -86,26 +86,26 @@ DumpDecoderClient::Read(InputStream &is, void *buffer, size_t length) noexcept } void -DumpDecoderClient::SubmitTimestamp(gcc_unused FloatDuration t) noexcept +DumpDecoderClient::SubmitTimestamp([[maybe_unused]] FloatDuration t) noexcept { } DecoderCommand -DumpDecoderClient::SubmitData(gcc_unused InputStream *is, +DumpDecoderClient::SubmitData([[maybe_unused]] InputStream *is, const void *data, size_t datalen, - gcc_unused uint16_t kbit_rate) noexcept + [[maybe_unused]] uint16_t kbit_rate) noexcept { if (kbit_rate != prev_kbit_rate) { prev_kbit_rate = kbit_rate; fprintf(stderr, "%u kbit/s\n", kbit_rate); } - gcc_unused ssize_t nbytes = write(STDOUT_FILENO, data, datalen); + [[maybe_unused]] ssize_t nbytes = write(STDOUT_FILENO, data, datalen); return GetCommand(); } DecoderCommand -DumpDecoderClient::SubmitTag(gcc_unused InputStream *is, +DumpDecoderClient::SubmitTag([[maybe_unused]] InputStream *is, Tag &&tag) noexcept { fprintf(stderr, "TAG: duration=%f\n", tag.duration.ToDoubleS()); @@ -139,7 +139,7 @@ DumpDecoderClient::SubmitReplayGain(const ReplayGainInfo *rgi) noexcept } void -DumpDecoderClient::SubmitMixRamp(gcc_unused MixRampInfo &&mix_ramp) noexcept +DumpDecoderClient::SubmitMixRamp([[maybe_unused]] MixRampInfo &&mix_ramp) noexcept { fprintf(stderr, "MixRamp: start='%s' end='%s'\n", mix_ramp.GetStart(), mix_ramp.GetEnd()); |