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 /src/filter | |
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 'src/filter')
-rw-r--r-- | src/filter/Observer.cxx | 2 | ||||
-rw-r--r-- | src/filter/plugins/NormalizeFilterPlugin.cxx | 2 | ||||
-rw-r--r-- | src/filter/plugins/NullFilterPlugin.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/filter/Observer.cxx b/src/filter/Observer.cxx index e052272eb..73a6e758e 100644 --- a/src/filter/Observer.cxx +++ b/src/filter/Observer.cxx @@ -43,7 +43,7 @@ public: observer.proxy = nullptr; } - void Clear(gcc_unused Proxy *_child) noexcept { + void Clear([[maybe_unused]] Proxy *_child) noexcept { assert(child == _child); child = nullptr; } diff --git a/src/filter/plugins/NormalizeFilterPlugin.cxx b/src/filter/plugins/NormalizeFilterPlugin.cxx index b4e0b444b..4d3e936ee 100644 --- a/src/filter/plugins/NormalizeFilterPlugin.cxx +++ b/src/filter/plugins/NormalizeFilterPlugin.cxx @@ -53,7 +53,7 @@ public: }; static std::unique_ptr<PreparedFilter> -normalize_filter_init(gcc_unused const ConfigBlock &block) +normalize_filter_init([[maybe_unused]] const ConfigBlock &block) { return std::make_unique<PreparedNormalizeFilter>(); } diff --git a/src/filter/plugins/NullFilterPlugin.cxx b/src/filter/plugins/NullFilterPlugin.cxx index 115124179..143c104ab 100644 --- a/src/filter/plugins/NullFilterPlugin.cxx +++ b/src/filter/plugins/NullFilterPlugin.cxx @@ -38,7 +38,7 @@ public: }; static std::unique_ptr<PreparedFilter> -null_filter_init(gcc_unused const ConfigBlock &block) +null_filter_init([[maybe_unused]] const ConfigBlock &block) { return std::make_unique<PreparedNullFilter>(); } |