mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-07 13:28:05 +08:00
tester.c: Use -Wmemset-transposed-args for GCC 5 or newer
Since GCC 4.9 issues an error: In file included from inl-tester.c:6:0: tester.c:58:1: error: unknown option after ‘#pragma GCC diagnostic’ kind [-Werror=pragmas] DIAG_IGNORE_NEEDS_COMMENT (5.0, "-Wmemset-transposed-args"); ^ use it for GCC 5 or newer. Signed-off-by: H.J. Lu <hjl.tools@gmail.com> Reviewed-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
a1a414b3ce
commit
9856784b6a
@ -55,7 +55,9 @@ DIAG_IGNORE_NEEDS_COMMENT (11, "-Wstringop-overread");
|
||||
are larger than the actual buffers, which result in various
|
||||
warnings. */
|
||||
DIAG_IGNORE_NEEDS_COMMENT (8, "-Warray-bounds");
|
||||
#if __GNUC_PREREQ (5, 0)
|
||||
DIAG_IGNORE_NEEDS_COMMENT (5.0, "-Wmemset-transposed-args");
|
||||
#endif
|
||||
#if __GNUC_PREREQ (7, 0)
|
||||
DIAG_IGNORE_NEEDS_COMMENT (9, "-Wrestrict");
|
||||
DIAG_IGNORE_NEEDS_COMMENT (7, "-Wstringop-overflow=");
|
||||
|
Loading…
Reference in New Issue
Block a user