From 57f58c98f1418b3b0a7ba8039bb70a08e1d265b1 Mon Sep 17 00:00:00 2001 From: Travis Finkenauer Date: Wed, 17 Jan 2024 14:27:34 -0800 Subject: [PATCH] build.rs: don't use `-pedantic` flag In some build systems, target sysroots may use non-standard C extentions like `#include_next`. In such cases, the `-pedantic` flag breaks the compilation. Resolves issue #1923. --- build.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/build.rs b/build.rs index f7b94108b..1762ad9b0 100644 --- a/build.rs +++ b/build.rs @@ -111,7 +111,6 @@ fn cpp_flags(compiler: &cc::Tool) -> &'static [&'static str] { static NON_MSVC_FLAGS: &[&str] = &[ "-fvisibility=hidden", "-std=c1x", // GCC 4.6 requires "c1x" instead of "c11" - "-pedantic", "-Wall", "-Wextra", "-Wbad-function-cast",