From 40fdb7370c946426d226c2c33a28d9b79f9dee4e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 13 Jun 2023 12:59:07 +0200 Subject: Release version 1.2.1200+3 Suppress -Wdeprecated-non-prototype Clang 15 warning. --- libz/libz/buildfile | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'libz/libz/buildfile') 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' { -- cgit v1.1