[glibc/azanella/clang] stdio: Suppress -Wformat only for gcc for tst-sprintf-errno.c

Adhemerval Zanella azanella@sourceware.org
Wed Aug 30 12:39:02 GMT 2023


https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=653913deeb7d204d1677785970109c3f2b4e161d

commit 653913deeb7d204d1677785970109c3f2b4e161d
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 24 15:56:35 2022 -0300

    stdio: Suppress -Wformat only for gcc for tst-sprintf-errno.c

Diff:
---
 stdio-common/tst-sprintf-errno.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stdio-common/tst-sprintf-errno.c b/stdio-common/tst-sprintf-errno.c
index 79764d7a5f..bc9485f6f5 100644
--- a/stdio-common/tst-sprintf-errno.c
+++ b/stdio-common/tst-sprintf-errno.c
@@ -24,7 +24,7 @@
 
 /* GCC does not yet know about the %#m specifier.  */
 DIAG_PUSH_NEEDS_COMMENT;
-DIAG_IGNORE_NEEDS_COMMENT (11, "-Wformat=");
+DIAG_IGNORE_NEEDS_COMMENT_GCC (11, "-Wformat=");
 
 static int
 do_test (void)


More information about the Glibc-cvs mailing list