cairo: suppress a bunch of warnings

We can't do anything about warnings in the vendored code, except
pretend they do not exist!
This commit is contained in:
Wez Furlong committed 2023-08-20 17:38:25 -07:00
1 parent 8f4f9653c5
commit 19ccec6e86
1 file changed
+5
+5
View File
@@ -1,8 +1,13 @@
fn new_build() -> cc::Build {
let mut cfg = cc::Build::new();
cfg.warnings(false);
cfg.extra_warnings(false);
cfg.flag_if_supported("-fno-stack-check");
cfg.flag_if_supported("-Wno-attributes");
cfg.flag_if_supported("-Wno-enum-conversion");
cfg.flag_if_supported("-Wno-incompatible-pointer-types");
cfg.flag_if_supported("-Wno-parentheses-equality");
cfg.flag_if_supported("-Wno-unused-value");
cfg
}