aboutsummaryrefslogtreecommitdiff
path: root/third_party/pico_sdk/src/rp2_common/hardware_flash/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/pico_sdk/src/rp2_common/hardware_flash/BUILD.gn')
-rw-r--r--third_party/pico_sdk/src/rp2_common/hardware_flash/BUILD.gn14
1 files changed, 12 insertions, 2 deletions
diff --git a/third_party/pico_sdk/src/rp2_common/hardware_flash/BUILD.gn b/third_party/pico_sdk/src/rp2_common/hardware_flash/BUILD.gn
index 6e3e19014..57ec6c8cc 100644
--- a/third_party/pico_sdk/src/rp2_common/hardware_flash/BUILD.gn
+++ b/third_party/pico_sdk/src/rp2_common/hardware_flash/BUILD.gn
@@ -25,9 +25,19 @@ config("public_include_dirs") {
include_dirs = [ "${_CWD}/include" ]
}
+config("disable_warnings") {
+ cflags = [
+ "-Wno-pointer-arith",
+ "-Wno-shadow",
+ ]
+}
+
pw_source_set("hardware_flash") {
- remove_configs = [ "$dir_pw_build:strict_warnings" ]
- public_configs = [ ":public_include_dirs" ]
+ public_configs = [
+ ":public_include_dirs",
+ "${PICO_ROOT}/gn:disable_warnings",
+ ]
+ configs = [ ":disable_warnings" ]
public_deps = [ "${PICO_ROOT}/src/common/pico_base" ]
deps = [
"${PICO_ROOT}/src/common/pico_sync",