From 31cb23a32d0665777a82799f3f476266882516cb Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Mon, 30 Jan 2023 10:51:00 +0100 Subject: Remove -Werror from externals' cflags ... and suppress new warnings thrown by clang-15. Co-authored-by: Michael Thies --- etc/defaults/CC/TARGETS.archive | 3 +-- etc/defaults/CC/TARGETS.boringssl | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'etc/defaults') diff --git a/etc/defaults/CC/TARGETS.archive b/etc/defaults/CC/TARGETS.archive index 8c365c4d..7e6b1a1b 100644 --- a/etc/defaults/CC/TARGETS.archive +++ b/etc/defaults/CC/TARGETS.archive @@ -35,8 +35,7 @@ , { "type": "if" , "cond": {"type": "var", "name": "DEBUG"} , "then": - [ "-Werror" - , "-g" + [ "-g" , "-Wextra" , "-Wunused" , "-Wshadow" diff --git a/etc/defaults/CC/TARGETS.boringssl b/etc/defaults/CC/TARGETS.boringssl index 8f443e55..bb164ad9 100644 --- a/etc/defaults/CC/TARGETS.boringssl +++ b/etc/defaults/CC/TARGETS.boringssl @@ -38,12 +38,14 @@ , [ "-Wa,--noexecstack" , "-D_XOPEN_SOURCE=700" , "-Wall" - , "-Werror" , "-Wformat=2" , "-Wsign-compare" , "-Wmissing-field-initializers" , "-Wwrite-strings" , "-Wshadow" + , "-Wno-unknown-warning-option" + , "-Wno-array-parameter" + , "-Wno-unused-but-set-variable" , "-fno-common" ] ] -- cgit v1.2.3