summaryrefslogtreecommitdiff
path: root/cflags.SH
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-09-14 17:39:15 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2014-09-19 09:26:51 -0400
commit78e91e3f8a5c269162712a52608b3b727352d602 (patch)
treed298181f046e99e98de66e1e2b909e5b4c3ddecd /cflags.SH
parenta4eca1d4e93229f61c43cff9ccf327446a06c800 (diff)
downloadperl-78e91e3f8a5c269162712a52608b3b727352d602.tar.gz
quadmath Q format specifier and gcc -Wformat do not mix.
Diffstat (limited to 'cflags.SH')
-rwxr-xr-xcflags.SH15
1 files changed, 15 insertions, 0 deletions
diff --git a/cflags.SH b/cflags.SH
index 6bfa188688..031b7800c1 100755
--- a/cflags.SH
+++ b/cflags.SH
@@ -317,6 +317,21 @@ case "$gccversion" in
;;
esac
+# The quadmath Q format specifier will cause -Wformat to whine.
+case "$gccversion" in
+'') ;;
+*) case "$usequadmath" in
+ define)
+ for f in -Wno-format
+ do
+ echo "cflags.SH: Adding $f because of usequadmath."
+ warn="$warn $f"
+ done
+ ;;
+ esac
+ ;;
+esac
+
case "$cc" in
*g++*)
# Extra paranoia in case people have bad canned ccflags: