chore: fix C++ warning (#10922)

This commit is contained in:
Sebastian Ullrich 2025-10-24 13:09:08 +02:00 committed by GitHub
parent 1145498521
commit dec007693a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -200,8 +200,8 @@ jobs:
"test": true,
// NOTE: `test-speedcenter` currently seems to be broken on `ubuntu-latest`
"test-speedcenter": large && level >= 2,
// made explicit until it can be assumed to have propagated to PRs
"CMAKE_OPTIONS": "-DUSE_LAKE=ON",
// We are not warning-free yet on all platforms, start here
"CMAKE_OPTIONS": "-DLEAN_EXTRA_CXX_FLAGS=-Werror",
},
{
"name": "Linux Reldebug",

View file

@ -69,6 +69,7 @@ public:
m_start = std::move(other.m_start);
m_fn = std::move(other.m_fn); // TODO: use `std::exchange(_, nullptr)` in C++14
other.m_fn = nullptr;
return *this;
}
~xtimeit() {
if (!m_fn) return;