Skip to content

Commit ad8f2e7

Browse files
thread_local
1 parent 9b0cff4 commit ad8f2e7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libc/test/integration/src/pthread/pthread_exit_test.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ class A {
2929
}
3030
};
3131

32+
#pragma GCC diagnostic push
33+
#pragma GCC diagnostic ignored "-Wglobal-constructors"
3234
thread_local A thread_local_a(123);
35+
#pragma GCC diagnostic pop
3336

3437
void *func(void *) {
3538
// Touch the thread local variable so that it gets initialized and a callback

0 commit comments

Comments
 (0)