Dont warn on nonnull comparisons (#3123)

This commit is contained in:
Jesse Hills 2022-02-08 21:28:12 +13:00 committed by GitHub
parent 434ca47ea0
commit 1c0697b5d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -166,6 +166,7 @@ async def to_code(config):
cg.add_platformio_option("framework", "arduino")
cg.add_build_flag("-DUSE_ARDUINO")
cg.add_build_flag("-DUSE_ESP8266_FRAMEWORK_ARDUINO")
cg.add_build_flag("-Wno-nonnull-compare")
cg.add_platformio_option("platform", conf[CONF_PLATFORM_VERSION])
cg.add_platformio_option(
"platform_packages",

View File

@ -94,6 +94,7 @@ lib_deps =
DNSServer ; captive_portal (Arduino built-in)
build_flags =
${common:arduino.build_flags}
-Wno-nonnull-compare
-DUSE_ESP8266
-DUSE_ESP8266_FRAMEWORK_ARDUINO
extra_scripts = post:esphome/components/esp8266/post_build.py.script