diff options
author | David Robillard <d@drobilla.net> | 2022-06-29 09:45:46 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-07-20 16:24:23 -0400 |
commit | d855f8f67a4588f44ade0ed19744c99bfe81e76c (patch) | |
tree | 83128be6067bdd21a4c6a9440e15f387e20e9025 /test/maid_test.cpp | |
parent | cf72f2855fccaf1c579388bcdba2a219a9983d96 (diff) | |
download | raul-d855f8f67a4588f44ade0ed19744c99bfe81e76c.tar.gz raul-d855f8f67a4588f44ade0ed19744c99bfe81e76c.tar.bz2 raul-d855f8f67a4588f44ade0ed19744c99bfe81e76c.zip |
Use nodiscard attribute
Diffstat (limited to 'test/maid_test.cpp')
-rw-r--r-- | test/maid_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/maid_test.cpp b/test/maid_test.cpp index cb4e461..2a936f9 100644 --- a/test/maid_test.cpp +++ b/test/maid_test.cpp @@ -38,7 +38,7 @@ public: ~Junk() override { --n_junk; } - size_t value() const { return _val; } + [[nodiscard]] size_t value() const { return _val; } private: size_t _val; |