File tree Expand file tree Collapse file tree 2 files changed +17
-11
lines changed
Expand file tree Collapse file tree 2 files changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -68,11 +68,14 @@ distrib_cc_library(
6868 "zlib.h" ,
6969 "zutil.h" ,
7070 ],
71- # Use -Dverbose=-1 to turn off zlib's trace logging. (#3280)
72- copts = [
73- "-w" ,
74- "-Dverbose=-1" ,
75- ],
71+ copts = select ({
72+ "@platforms//os:windows" : [],
73+ "//conditions:default" : [
74+ "-Wno-deprecated-non-prototype" ,
75+ "-Wno-unused-variable" ,
76+ "-Wno-implicit-function-declaration" ,
77+ ],
78+ }),
7679 enable_distributions = ["debian" ],
7780 includes = ["." ],
7881 visibility = ["//visibility:public" ],
Original file line number Diff line number Diff line change @@ -12,18 +12,21 @@ license(
1212 "@rules_license//licenses/spdx:0BSD",
1313 ],
1414 license_text = "LICENSE",
15- package_version = "1.2.12 ",
15+ package_version = "1.3 ",
1616)
1717
1818cc_library(
1919 name = "zlib",
2020 srcs = glob(["*.c"]),
2121 hdrs = glob(["*.h"]),
22- # Use -Dverbose=-1 to turn off zlib's trace logging. (#3280)
23- copts = [
24- "-w",
25- "-Dverbose=-1",
26- ],
22+ copts = select({
23+ "@platforms//os:windows": [],
24+ "//conditions:default": [
25+ "-Wno-deprecated-non-prototype",
26+ "-Wno-unused-variable",
27+ "-Wno-implicit-function-declaration",
28+ ],
29+ }),
2730 includes = ["."],
2831 visibility = ["//visibility:public"],
2932)
You can’t perform that action at this time.
0 commit comments