about summary refs log tree commit diff
path: root/hurd
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-03-09 15:51:50 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-04-17 16:12:10 -0300
commit279ce840452e6da645579ca4169c0f0c25cac47f (patch)
tree734b7cfa0aae3a0bc5b5ccaa1d586490622d5ae9 /hurd
parentd2765f0fa2c6292ad25cfc6a74b91aa7ec0ea01a (diff)
downloadglibc-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.c2
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;