From 81fed3cbd18dbf99d93433c154eaf1ba9c3ea025 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Sat, 17 Feb 2024 13:30:21 -0800 Subject: [PATCH] build.rs: Remove some previously-added C compiler warnings. Remove "-Winline" in particular because it has caused problems for multiple people trying to port *ring* to new targets. Remove '-Wextra", trusting the C compiler writers' judgement about what should be in "-Wall." Remove some others since they're more-or-less no longer relevant as we decrease the C code in *ring*. --- build.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/build.rs b/build.rs index fb06686572..8a09a22170 100644 --- a/build.rs +++ b/build.rs @@ -114,16 +114,10 @@ fn cpp_flags(compiler: &cc::Tool) -> &'static [&'static str] { "-fvisibility=hidden", "-std=c1x", // GCC 4.6 requires "c1x" instead of "c11" "-Wall", - "-Wextra", "-Wbad-function-cast", "-Wcast-align", "-Wcast-qual", "-Wconversion", - "-Wenum-compare", - "-Wfloat-equal", - "-Wformat=2", - "-Winline", - "-Winvalid-pch", "-Wmissing-field-initializers", "-Wmissing-include-dirs", "-Wnested-externs", @@ -134,7 +128,6 @@ fn cpp_flags(compiler: &cc::Tool) -> &'static [&'static str] { "-Wstrict-prototypes", "-Wundef", "-Wuninitialized", - "-Wwrite-strings", ]; NON_MSVC_FLAGS } else {