diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-03-09 15:51:50 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-04-17 16:12:10 -0300 |
commit | 279ce840452e6da645579ca4169c0f0c25cac47f (patch) | |
tree | 734b7cfa0aae3a0bc5b5ccaa1d586490622d5ae9 /hurd | |
parent | d2765f0fa2c6292ad25cfc6a74b91aa7ec0ea01a (diff) | |
download | glibc-279ce840452e6da645579ca4169c0f0c25cac47f.tar.gz glibc-279ce840452e6da645579ca4169c0f0c25cac47f.tar.xz glibc-279ce840452e6da645579ca4169c0f0c25cac47f.zip |
Suppress -Wmaybe-uninitialized only for gcc
The warning is not supported by clang.
Diffstat (limited to 'hurd')
-rw-r--r-- | hurd/hurdsig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hurd/hurdsig.c b/hurd/hurdsig.c index 8b1928d1a1..a7b7bbcc58 100644 --- a/hurd/hurdsig.c +++ b/hurd/hurdsig.c @@ -376,7 +376,7 @@ interrupted_reply_port_location (thread_t thread, /* GCC 6 and before seem to be confused by the setjmp call inside _hurdsig_catch_memory_fault and think that we may be returning a second time to here with portloc uninitialized (but we never do). */ - DIAG_IGNORE_NEEDS_COMMENT (6, "-Wmaybe-uninitialized"); + DIAG_IGNORE_NEEDS_COMMENT_GCC (6, "-Wmaybe-uninitialized"); /* Fault now if this pointer is bogus. */ *(volatile mach_port_t *) portloc = *portloc; DIAG_POP_NEEDS_COMMENT; |