Skip to content

Commit f8b497e

Browse files
[compiler-rt] Work around a warning from -Wgnu-anonymous-struct (#120314)
This patch works around: compiler-rt/lib/tysan/../sanitizer_common/sanitizer_platform_limits_posix.h:604:3: error: anonymous structs are a GNU extension [-Werror,-Wgnu-anonymous-struct]
1 parent 6d34cfa commit f8b497e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ struct __sanitizer_siginfo_pad {
601601
#if SANITIZER_LINUX
602602
# define SANITIZER_HAS_SIGINFO 1
603603
union __sanitizer_siginfo {
604-
struct {
604+
__extension__ struct {
605605
int si_signo;
606606
# if SANITIZER_MIPS
607607
int si_code;

0 commit comments

Comments
 (0)