diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/command_manager.cc | 2 | ||||
| -rw-r--r-- | src/utils.hh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/command_manager.cc b/src/command_manager.cc index 570e0d88..971e1a5d 100644 --- a/src/command_manager.cc +++ b/src/command_manager.cc @@ -514,7 +514,7 @@ void CommandManager::execute_single_command(CommandParameters params, if (debug_flags & DebugFlags::Commands) write_to_debug_buffer(format("command {}", join(params, ' '))); - on_scope_end([&] { + auto profile = on_scope_end([&] { if (not (debug_flags & DebugFlags::Profile)) return; auto full = std::chrono::duration_cast<std::chrono::microseconds>(Clock::now() - start); 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]] |
