summaryrefslogtreecommitdiff
path: root/libz/libz
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2023-06-21 21:11:46 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2023-06-21 21:40:40 +0300
commitbe0be2c150ba1f425631fc1b04843ac6f2316592 (patch)
tree446dfb557fe4bc038bc81d5ded17e22f1ead6569 /libz/libz
parent40fdb7370c946426d226c2c33a28d9b79f9dee4e (diff)
Release version 1.2.1200+4HEADv1.2.1200+4master
Suppress -Wdeprecated-non-prototype Clang 15 warning on MacOS.
Diffstat (limited to 'libz/libz')
-rw-r--r--libz/libz/buildfile17
1 files changed, 7 insertions, 10 deletions
diff --git a/libz/libz/buildfile b/libz/libz/buildfile
index 3851db4..0103711 100644
--- a/libz/libz/buildfile
+++ b/libz/libz/buildfile
@@ -61,16 +61,13 @@ switch $c.class
#
c.coptions += -Wno-all -Wno-extra
- 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
- }
+ if ($c.id.type == 'clang' && $c.version.major >= 15)
+ c.coptions += -Wno-deprecated-non-prototype
+
+ # Disable the Clang targeting MSVC warnings.
+ #
+ if ($c.id == 'clang' && $tsys == 'win32-msvc')
+ c.coptions += -Wno-deprecated-declarations
}
case 'msvc'
{