From 16ba6f239350a2014d331fc46bedf4eef2c17e1b Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Fri, 4 Oct 2024 07:30:11 +0900 Subject: [PATCH] Remove WARNINGS_AS_ERRORS It's already implied by the gitdev feature. --- CI/tools.py | 4 +--- src/build.mk | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/CI/tools.py b/CI/tools.py index b51222cae..67a8d2615 100644 --- a/CI/tools.py +++ b/CI/tools.py @@ -388,9 +388,7 @@ def prefix(p, s): head = None desc_variant = variant extra_commands = [] - environ = { - "WARNINGS_AS_ERRORS": "1", - } + environ = {} cargo_flags = ["-vv", "--release"] cargo_features = ["self-update", "gitdev", "xz2/static", "bzip2/static"] rust_version = None diff --git a/src/build.mk b/src/build.mk index 9cc141bf9..723810ff5 100644 --- a/src/build.mk +++ b/src/build.mk @@ -51,9 +51,7 @@ ALL_CFLAGS := $(filter-out -DPRECOMPOSE_UNICODE,$(ALL_CFLAGS)) ifdef MINGW_WRAPPERS ALL_CFLAGS += -I$(SOURCE_DIR)/src/mingw endif -ifdef WARNINGS_AS_ERRORS -ALL_CFLAGS += -Werror -else +ifndef DEVELOPER ALL_CFLAGS += -Werror=implicit-function-declaration endif