diff options
| author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2025-10-17 16:12:40 -0300 |
|---|---|---|
| committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2025-10-21 09:24:05 -0300 |
| commit | 76dfd91275c57fa09412436671572337226a90a2 (patch) | |
| tree | 4dbc897000e6fb58c3bdd7b0bfccac2412dd5195 /hurd | |
| parent | 848342ae15cdcea67319ee686a4a59ecfb1d635a (diff) | |
Suppress -Wmaybe-uninitialized only for gcc
The warning is not supported by clang.
Reviewed-by: Sam James <sam@gentoo.org>
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 2f04f0ac9c..672bc06f88 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; |
