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/tests/minigzip/buildfile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'libz/tests') diff --git a/libz/tests/minigzip/buildfile b/libz/tests/minigzip/buildfile index 660d759..9419fa1 100644 --- a/libz/tests/minigzip/buildfile +++ b/libz/tests/minigzip/buildfile @@ -5,9 +5,15 @@ import libs = libz%lib{z} exe{driver}: {h c}{*} $libs testscript -# Disable MSVC warnings that pop up with /W3 and Clang/MSVC warnings. +# Disable MSVC warnings that pop up with /W3 and Clang warnings. # if ($c.class == 'msvc') c.coptions += /wd4267 /wd4996 -elif ($c.id == 'clang' && $c.target.system == 'win32-msvc') - c.coptions += -Wno-deprecated-declarations +elif ($c.id == 'clang') +{ + if ($c.version.major >= 15) + c.coptions += -Wno-deprecated-non-prototype + + if ($c.target.system == 'win32-msvc') + c.coptions += -Wno-deprecated-declarations +} -- cgit v1.1