diff options
Diffstat (limited to 'libz/libz/buildfile')
-rw-r--r-- | libz/libz/buildfile | 16 |
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' { |