about summary refs log tree commit diff
path: root/libio/Makefile
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-07-27 15:49:52 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-04-17 16:12:41 -0300
commit1edd4ace3765da93cb175b5d83cb846102322148 (patch)
tree4d176315f336313428577327dc21b6a8dee98ce9 /libio/Makefile
parentb3816426d9e35c6d15f901657b5beb1fdc3d51fa (diff)
downloadglibc-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/Makefile4
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