From 8e7648fd6474ec92e4b8d5949cbb223e4a593e01 Mon Sep 17 00:00:00 2001 From: Nick Santana Date: Wed, 3 Jan 2024 11:49:55 -0800 Subject: [PATCH] Disable warnings as errors In particular for apple arm builds some variables show up as unused. These unused warnings result in compilation errors. Disabling all warnings as errors. --- mbedtls-sys/build/cmake.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/mbedtls-sys/build/cmake.rs b/mbedtls-sys/build/cmake.rs index f9254a31..07391e5a 100644 --- a/mbedtls-sys/build/cmake.rs +++ b/mbedtls-sys/build/cmake.rs @@ -17,6 +17,7 @@ impl super::BuildConfig { )) .define("ENABLE_PROGRAMS", "OFF") .define("ENABLE_TESTING", "OFF") + .define("MBEDTLS_FATAL_WARNINGS", "OFF") .build_target("lib"); for cflag in &self.cflags { cmk.cflag(cflag);