diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-07-27 15:49:52 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-04-17 16:12:41 -0300 |
commit | 1edd4ace3765da93cb175b5d83cb846102322148 (patch) | |
tree | 4d176315f336313428577327dc21b6a8dee98ce9 /libio/Makefile | |
parent | b3816426d9e35c6d15f901657b5beb1fdc3d51fa (diff) | |
download | glibc-1edd4ace3765da93cb175b5d83cb846102322148.tar.gz glibc-1edd4ace3765da93cb175b5d83cb846102322148.tar.xz glibc-1edd4ace3765da93cb175b5d83cb846102322148.zip |
configure: Use -Wno-restrict iff compiler supports it
Diffstat (limited to 'libio/Makefile')
-rw-r--r-- | libio/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libio/Makefile b/libio/Makefile index 27623c92a9..385bee9b7d 100644 --- a/libio/Makefile +++ b/libio/Makefile @@ -187,8 +187,8 @@ 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 += $(config-cflags-wno-restrict) $(no-fortify-source) +CFLAGS-tst-sprintf-chk-ub.c += $(config-cflags-wno-restrict) $(no-fortify-source) LDFLAGS-tst-bz24228 = -Wl,--version-script=tst-bz24228.map |