diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-12-23 05:11:59 +0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2024-12-23 06:28:55 +0800 |
commit | 309225af546609c75663637e40472b4378371078 (patch) | |
tree | ce9dbe5f2f3468dfb75179ae1097c091864acb21 /stdio-common | |
parent | a2b0ff98a0d44259cc5f6bd7d3a3676ae9f8996a (diff) | |
download | glibc-309225af546609c75663637e40472b4378371078.zip glibc-309225af546609c75663637e40472b4378371078.tar.gz glibc-309225af546609c75663637e40472b4378371078.tar.bz2 |
stdio: Suppress -Wformat only for gcc in tst-sprintf-errno.c
Since Clang doesn't support
DIAG_IGNORE_NEEDS_COMMENT (11, "-Wformat=");
and for unknown reasons, it doesn't warn the %#m specifier, suppress
-Wformat only for gcc in tst-sprintf-errno.c.
Co-Authored-By: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'stdio-common')
-rw-r--r-- | stdio-common/tst-sprintf-errno.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stdio-common/tst-sprintf-errno.c b/stdio-common/tst-sprintf-errno.c index e00c3fb..2ea1fde 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) |