summaryrefslogtreecommitdiff
path: root/src/utils.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2021-06-24 12:14:53 +1000
committerMaxime Coste <mawww@kakoune.org>2021-06-24 17:14:10 +1000
commit49e2ecdcdb66ef5c0291f3ffc4d6616accd128a5 (patch)
treeeb6a45a31bd98995a5016f068eeb9cdedc769a57 /src/utils.hh
parent8fdda6d980530d42ff246a33f55e17878748f919 (diff)
Fix invalid command profiling logic
Diffstat (limited to 'src/utils.hh')
-rw-r--r--src/utils.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.hh b/src/utils.hh
index 087c4ba8..9e055497 100644
--- a/src/utils.hh
+++ b/src/utils.hh
@@ -61,7 +61,7 @@ Singleton<T>* Singleton<T>::ms_instance = nullptr;
// This permits to cleanup c-style resources without implementing
// a wrapping class
template<typename T>
-class OnScopeEnd
+class [[nodiscard]] OnScopeEnd
{
public:
[[gnu::always_inline]]