build.rs: Remove -pedantic-errors from compiler configuration.

Our policy is to set warnings-as-errors only when buildingt from Git,
not when building from a packaged release. This flag is another aspect
of warnings-as-errors.
This commit is contained in:
Brian Smith 2023-10-08 20:02:45 -07:00
parent 29fb82717c
commit bbfb0cdba9

View File

@ -111,7 +111,6 @@ fn cpp_flags(compiler: &cc::Tool) -> &'static [&'static str] {
static NON_MSVC_FLAGS: &[&str] = &[ static NON_MSVC_FLAGS: &[&str] = &[
"-std=c1x", // GCC 4.6 requires "c1x" instead of "c11" "-std=c1x", // GCC 4.6 requires "c1x" instead of "c11"
"-pedantic", "-pedantic",
"-pedantic-errors",
"-Wall", "-Wall",
"-Wextra", "-Wextra",
"-Wbad-function-cast", "-Wbad-function-cast",