Skip to content

Commit

Permalink
Pigweed disable werror
Browse files Browse the repository at this point in the history
  • Loading branch information
jlatusek committed Mar 3, 2024
1 parent c1ae85c commit 1107766
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gn
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ default_args = {
pw_sys_io_BACKEND = "$dir_pw_sys_io_stdio"
pw_assert_BACKEND = "$dir_pw_assert_log"
pw_log_BACKEND = "$dir_pw_log_basic"
pw_build_DEFAULT_MODULE_CONFIG = "//:pigweed_wno_errors"

# TODO: Make sure only unit tests link against this
pw_build_LINK_DEPS = [
Expand Down
12 changes: 12 additions & 0 deletions BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@ if (chip_with_lwip) {
import("//build_overrides/lwip.gni")
}

config("pigweed_wno_errors_config") {
cflags = [
"-Wno-error=undef",
"-Wno-error=sign-compare",
"-Wno-error=sign-conversion",
]
}

group("pigweed_wno_errors") {
public_configs = [ ":pigweed_wno_errors_config" ]
}

if (current_toolchain != "${dir_pw_toolchain}/default:default") {
declare_args() {
chip_enable_python_modules =
Expand Down

0 comments on commit 1107766

Please sign in to comment.