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.
This commit is contained in:
Travis Finkenauer 2024-01-17 14:27:34 -08:00 committed by Brian Smith
parent 73fb637078
commit 57f58c98f1

View File

@ -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",