diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn index 4d729d76f6e07c..3fa6e2a2fb793c 100644 --- a/build/config/compiler/BUILD.gn +++ b/build/config/compiler/BUILD.gn @@ -257,8 +257,8 @@ config("strict_warnings") { # we can. Ideally this would be checking chip_device_platform or so # to be more fine-grained than current_os, but it's not clear that # we can access that here. - if (current_os != "android" && current_os != "freertos" && - current_os != "linux" && current_os != "mbed" && current_os != "zephyr" && + if (current_os != "freertos" && current_os != "mbed" && + current_os != "zephyr" && # cmsis-rtos is OpenIOT current_os != "cmsis-rtos" && # cyw30739 is one of the Infineon builds diff --git a/src/controller/java/AndroidCallbacks.cpp b/src/controller/java/AndroidCallbacks.cpp index 2c4d3153400775..69e5a0b68ad304 100644 --- a/src/controller/java/AndroidCallbacks.cpp +++ b/src/controller/java/AndroidCallbacks.cpp @@ -16,7 +16,7 @@ */ #include "AndroidCallbacks.h" #include -#if USE_JAVA_TLV_ENCODE_DECODE +#ifdef USE_JAVA_TLV_ENCODE_DECODE #include #include #endif @@ -384,7 +384,7 @@ void ReportCallback::OnAttributeData(const app::ConcreteDataAttributePath & aPat readerForJavaTLV.Init(*apData); jobject value = nullptr; -#if USE_JAVA_TLV_ENCODE_DECODE +#ifdef USE_JAVA_TLV_ENCODE_DECODE TLV::TLVReader readerForJavaObject; readerForJavaObject.Init(*apData); @@ -518,7 +518,7 @@ void ReportCallback::OnEventData(const app::EventHeader & aEventHeader, TLV::TLV } jobject value = nullptr; -#if USE_JAVA_TLV_ENCODE_DECODE +#ifdef USE_JAVA_TLV_ENCODE_DECODE TLV::TLVReader readerForJavaObject; readerForJavaObject.Init(*apData); value = DecodeEventValue(aEventHeader.mPath, readerForJavaObject, &err); diff --git a/src/platform/BUILD.gn b/src/platform/BUILD.gn index c588b94fa1621b..2b3188147311e9 100644 --- a/src/platform/BUILD.gn +++ b/src/platform/BUILD.gn @@ -241,7 +241,10 @@ if (chip_device_platform != "none" && chip_device_platform != "external") { defines += [ "CHIP_DEVICE_LAYER_TARGET=fake" ] } else if (chip_device_platform == "android") { device_layer_target_define = "ANDROID" - defines += [ "CHIP_DEVICE_LAYER_TARGET=android" ] + defines += [ + "CHIP_DEVICE_LAYER_TARGET=android", + "CHIP_DEVICE_CONFIG_ENABLE_WIFI=${chip_enable_wifi}", + ] } else if (chip_device_platform == "ameba") { device_layer_target_define = "AMEBA" defines += [ diff --git a/third_party/mbedtls/mbedtls.gni b/third_party/mbedtls/mbedtls.gni index e865e9c6584ce9..d76a260e05b567 100644 --- a/third_party/mbedtls/mbedtls.gni +++ b/third_party/mbedtls/mbedtls.gni @@ -29,6 +29,8 @@ template("mbedtls_target") { "-Wno-unused-but-set-parameter", "-Wno-format-nonliteral", # Because of mbedtls_debug_print_msg "-Wno-conversion", # Lots of -Wconversion warnings, sadly. + "-Wno-undef", # At least MBEDTLS_AESNI_HAVE_CODE is used without being + # defined. ] if (is_clang) {