summaryrefslogtreecommitdiff
path: root/libz/libz
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-06-13 12:59:07 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-06-13 13:20:57 +0200
commit40fdb7370c946426d226c2c33a28d9b79f9dee4e (patch)
tree9b2fbe41e4c2abccaac7a0832cc9e7048be7aa57 /libz/libz
parent039cbaca07a03305d85e915f4047ce04ca801482 (diff)
Release version 1.2.1200+3v1.2.1200+3
Suppress -Wdeprecated-non-prototype Clang 15 warning.
Diffstat (limited to 'libz/libz')
-rw-r--r--libz/libz/buildfile16
1 files changed, 12 insertions, 4 deletions
diff --git a/libz/libz/buildfile b/libz/libz/buildfile
index 15939d5..3851db4 100644
--- a/libz/libz/buildfile
+++ b/libz/libz/buildfile
@@ -57,12 +57,20 @@ switch $c.class
# way that works across compilers/version (some -Wno-* options are only
# recognized in newer versions).
#
+ # @@ TMP: try to re-enable on next release.
+ #
c.coptions += -Wno-all -Wno-extra
- # Disable the Clang targeting MSVC warnings.
- #
- if ($c.id == 'clang' && $tsys == 'win32-msvc')
- c.coptions += -Wno-deprecated-declarations
+ if ($c.id == 'clang')
+ {
+ if ($c.version.major >= 15)
+ c.coptions += -Wno-deprecated-non-prototype
+
+ # Disable the Clang targeting MSVC warnings.
+ #
+ if ($tsys == 'win32-msvc')
+ c.coptions += -Wno-deprecated-declarations
+ }
}
case 'msvc'
{