diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-07-27 15:49:52 -0300 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2024-12-23 04:32:51 +0800 |
commit | 2271e0d2b606637870daa2a39894eb8d8bbfe5dc (patch) | |
tree | 973c6b2225ed0e6c31cb7d56c8ea852aafd5e772 /libio/Makefile | |
parent | 325db5ab7ff6983d9e46dc3118ebfe8085d76eb9 (diff) | |
download | glibc-2271e0d2b606637870daa2a39894eb8d8bbfe5dc.zip glibc-2271e0d2b606637870daa2a39894eb8d8bbfe5dc.tar.gz glibc-2271e0d2b606637870daa2a39894eb8d8bbfe5dc.tar.bz2 |
Check if TEST_CC supports -Wno-restrict before using it
Check if TEST_CC supports -Wno-restrict before using it to avoid Clang
error:
error: unknown warning option '-Wno-restrict' [-Werror,-Wunknown-warning-option]
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'libio/Makefile')
-rw-r--r-- | libio/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libio/Makefile b/libio/Makefile index 4370152..a879e8c 100644 --- a/libio/Makefile +++ b/libio/Makefile @@ -250,8 +250,10 @@ CFLAGS-tst-bz24153.c += $(no-fortify-source) CFLAGS-tst_putwc.c += -DOBJPFX=\"$(objpfx)\" # These test cases intentionally use overlapping arguments -CFLAGS-tst-sprintf-ub.c += -Wno-restrict $(no-fortify-source) -CFLAGS-tst-sprintf-chk-ub.c += -Wno-restrict $(no-fortify-source) +CFLAGS-tst-sprintf-ub.c += $(test-config-cflags-wno-restrict) \ + $(no-fortify-source) +CFLAGS-tst-sprintf-chk-ub.c += $(test-config-cflags-wno-restrict) \ + $(no-fortify-source) LDFLAGS-tst-bz24228 = -Wl,--version-script=tst-bz24228.map |