about summary refs log tree commit diff
path: root/posix/regexec.c
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 /posix/regexec.c
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 'posix/regexec.c')
-rw-r--r--posix/regexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/posix/regexec.c b/posix/regexec.c
index 180e3bce40..13add301f5 100644
--- a/posix/regexec.c
+++ b/posix/regexec.c
@@ -3772,7 +3772,7 @@ check_node_accept_bytes (const re_dfa_t *dfa, Idx node_idx,
 		 however the loop will be executed iff ncoll_syms is larger
 		 than 0,which means extra will be already initialized.  */
 	      DIAG_PUSH_NEEDS_COMMENT;
-	      DIAG_IGNORE_Os_NEEDS_COMMENT (8, "-Wmaybe-uninitialized");
+	      DIAG_IGNORE_Os_NEEDS_COMMENT_GCC (8, "-Wmaybe-uninitialized");
 	      const unsigned char *coll_sym = extra + cset->coll_syms[i];
 	      DIAG_POP_NEEDS_COMMENT;
 	      /* Compare the length of input collating element and