fix: remove some warnings (#5998)

This commit is contained in:
Echo J.
2025-02-26 17:34:03 +02:00
committed by GitHub
parent 63b5b2ca6a
commit e59defb864
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -143,7 +143,7 @@ bool isBroadcasterSoftwareActive()
}
#else
# warning Unsupported OS: Broadcasting software can't be detected
# warning Unsupported OS: Broadcasting software can\'t be detected
#endif
return false;
}
+2 -3
View File
@@ -42,8 +42,6 @@ TEST(AccessGuardLocker, ConcurrentUsage)
std::shared_mutex m;
int e = 0;
auto startTime = std::chrono::steady_clock::now();
auto w = [&e, &m] {
std::mt19937_64 eng{std::random_device{}()};
std::uniform_int_distribution<> dist{1, 4};
@@ -58,7 +56,8 @@ TEST(AccessGuardLocker, ConcurrentUsage)
{
SharedAccessGuard<int> guard(e, m);
std::this_thread::sleep_for(std::chrono::milliseconds{dist(eng)});
int hehe = *guard;
volatile int hehe = *guard;
(void)hehe;
}
};