Skip to content

Commit ccf13f3

Browse files
Assume it's an intentional global
1 parent 54b604a commit ccf13f3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libc/test/integration/startup/gpu/init_fini_array_test.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ int GLOBAL_INDEX = 512;
3232
int INITVAL_INITIALIZER = 0x600D;
3333
int BEFORE_INITIALIZER = 0xFEED;
3434

35+
#pragma GCC diagnostic push
36+
#pragma GCC diagnostic ignored "-Wglobal-constructors"
3537
A global(GLOBAL_INDEX, INITVAL_INITIALIZER);
38+
#pragma GCC diagnostic pop
3639

3740
int initval = 0;
3841
int before = 0;

0 commit comments

Comments
 (0)