summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-06-13 12:59:07 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-06-13 12:59:07 +0200
commit1f73f1712c8d04a286c6e61ef13c2469f655010f (patch)
tree0b839e261d462cc2b7a4b3dde8a1c1afc2892ed6
parent039cbaca07a03305d85e915f4047ce04ca801482 (diff)
Fix
-rw-r--r--libz/README-DEV4
-rw-r--r--libz/libz/buildfile15
2 files changed, 15 insertions, 4 deletions
diff --git a/libz/README-DEV b/libz/README-DEV
index aa7874f..79d7ad1 100644
--- a/libz/README-DEV
+++ b/libz/README-DEV
@@ -1,3 +1,7 @@
+TODO:
+
+ - Try to re-enable warnings in case fixed.
+
This document describes how libz was packaged for build2. In particular, this
understanding will be useful when upgrading to a new upstream version. See
../README-DEV for general notes on zlib packaging.
diff --git a/libz/libz/buildfile b/libz/libz/buildfile
index 15939d5..d2660d0 100644
--- a/libz/libz/buildfile
+++ b/libz/libz/buildfile
@@ -57,12 +57,19 @@ 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')
+ {
+ c.coptions += -Wno-deprecated-non-prototype
+
+ # Disable the Clang targeting MSVC warnings.
+ #
+ if ($tsys == 'win32-msvc')
+ c.coptions += -Wno-deprecated-declarations
+ }
}
case 'msvc'
{