summaryrefslogtreecommitdiff
path: root/nptl_db
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2025-10-17 16:12:40 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2025-10-21 09:24:05 -0300
commit76dfd91275c57fa09412436671572337226a90a2 (patch)
tree4dbc897000e6fb58c3bdd7b0bfccac2412dd5195 /nptl_db
parent848342ae15cdcea67319ee686a4a59ecfb1d635a (diff)
Suppress -Wmaybe-uninitialized only for gcc
The warning is not supported by clang. Reviewed-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'nptl_db')
-rw-r--r--nptl_db/thread_dbP.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl_db/thread_dbP.h b/nptl_db/thread_dbP.h
index 41a46764e3..25c49fd9e9 100644
--- a/nptl_db/thread_dbP.h
+++ b/nptl_db/thread_dbP.h
@@ -176,7 +176,7 @@ extern ps_err_e td_mod_lookup (struct ps_prochandle *ps, const char *modname,
when DB_GET_FIELD_ADDRESS is called with a slot for ptr, the slot is
always initialized. */
DIAG_PUSH_NEEDS_COMMENT;
-DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
+DIAG_IGNORE_Os_NEEDS_COMMENT_GCC (5, "-Wmaybe-uninitialized");
#define DB_GET_FIELD_ADDRESS(var, ta, ptr, type, field, idx) \
((var) = (ptr), _td_locate_field ((ta), (ta)->ta_field_##type##_##field, \
SYM_##type##_FIELD_##field, \