summaryrefslogtreecommitdiff
path: root/etc/defaults
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2023-01-30 10:51:00 +0100
committerOliver Reiche <oliver.reiche@huawei.com>2023-01-31 15:24:37 +0100
commit31cb23a32d0665777a82799f3f476266882516cb (patch)
treee1788f3b1abd046f44dc4afe38774bcd3f50def6 /etc/defaults
parentc6a79583ed592fc8381c681d1829ce59b9816f8d (diff)
downloadjustbuild-31cb23a32d0665777a82799f3f476266882516cb.tar.gz
Remove -Werror from externals' cflags
... and suppress new warnings thrown by clang-15. Co-authored-by: Michael Thies <mail@mhthies.de>
Diffstat (limited to 'etc/defaults')
-rw-r--r--etc/defaults/CC/TARGETS.archive3
-rw-r--r--etc/defaults/CC/TARGETS.boringssl4
2 files changed, 4 insertions, 3 deletions
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"
]
]