diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2023-06-13 13:13:17 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2023-06-13 13:13:17 +0200 |
commit | b3c13dce0cd9c5599665a13164447c9045e1f115 (patch) | |
tree | d859171c22a0546021c65641e8cdc6e17c57d71c | |
parent | daaae030ee13d02b6f9e72a0fa41d6e53d1228ce (diff) |
-rw-r--r-- | libz/tests/minigzip/buildfile | 12 |
1 files changed, 9 insertions, 3 deletions
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 +} |