Fixes for GCC 13 and LLVM 17 (#1749)

This commit is contained in:
Tadej Novak
2023-10-14 10:48:59 +02:00
committed by GitHub
parent 89b9c3945c
commit a3e3290d68
9 changed files with 118 additions and 42 deletions

View File

@@ -183,8 +183,10 @@ TEST(Thread, ThreadPoolMessaging) {
}
TEST(Thread, ReferenceCanOutliveThread) {
#if defined(__GNUC__) && __GNUC__ >= 12
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wuse-after-free" // See AspiringActor<>::object()
#endif
auto thread = std::make_unique<Thread<TestWorker>>("Test");
auto worker = thread->actor();
@@ -196,7 +198,9 @@ TEST(Thread, ReferenceCanOutliveThread) {
using namespace std::literals;
std::this_thread::sleep_for(10s);
#if defined(__GNUC__) && __GNUC__ >= 12
#pragma GCC diagnostic pop
#endif
}
TEST(Thread, DeletePausedThread) {