From 52c8a85174662d57199d2d449aaf68ebce6a1b75 Mon Sep 17 00:00:00 2001 From: Junior Martinez Date: Thu, 13 Apr 2023 15:35:44 -0400 Subject: [PATCH] Comment the cflag -Wno-error=array-parameter until gcc 12.2 is used --- examples/platform/silabs/efr32/BUILD.gn | 2 +- .../platform/silabs/{syscall_stubs.cpp => syscalls_stubs.cpp} | 0 third_party/silabs/efr32_sdk.gni | 3 ++- 3 files changed, 3 insertions(+), 2 deletions(-) rename examples/platform/silabs/{syscall_stubs.cpp => syscalls_stubs.cpp} (100%) diff --git a/examples/platform/silabs/efr32/BUILD.gn b/examples/platform/silabs/efr32/BUILD.gn index 4d6981a63fbbf7..f2812c4eb241d9 100644 --- a/examples/platform/silabs/efr32/BUILD.gn +++ b/examples/platform/silabs/efr32/BUILD.gn @@ -282,7 +282,7 @@ source_set("efr32-common") { sources = [ "${silabs_common_plat_dir}/heap_4_silabs.c", - "${silabs_common_plat_dir}/syscall_stubs.cpp", + "${silabs_common_plat_dir}/syscalls_stubs.cpp", "efr32_utils.cpp", "init_efrPlatform.cpp", "matter_config.cpp", diff --git a/examples/platform/silabs/syscall_stubs.cpp b/examples/platform/silabs/syscalls_stubs.cpp similarity index 100% rename from examples/platform/silabs/syscall_stubs.cpp rename to examples/platform/silabs/syscalls_stubs.cpp diff --git a/third_party/silabs/efr32_sdk.gni b/third_party/silabs/efr32_sdk.gni index ab1dd6192937f1..baf89660ce836b 100644 --- a/third_party/silabs/efr32_sdk.gni +++ b/third_party/silabs/efr32_sdk.gni @@ -504,7 +504,8 @@ template("efr32_sdk") { "-Wno-shadow", # see https://github.com/project-chip/connectedhomeip/issues/26058 - "-Wno-error=array-parameter", + # Uncomment this cflag when pigweed update is done and GCC 12.2 is used. + # "-Wno-error=array-parameter", ] if (silabs_family == "efr32mg24" || silabs_family == "mgm24") {