From be0be2c150ba1f425631fc1b04843ac6f2316592 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 21 Jun 2023 21:11:46 +0300 Subject: Release version 1.2.1200+4 Suppress -Wdeprecated-non-prototype Clang 15 warning on MacOS. --- libz/libz/buildfile | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'libz/libz') 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' { -- cgit v1.1