From b43e7c7f0a32f2724e94115b5512dfd13e4db966 Mon Sep 17 00:00:00 2001 From: Martin Turon Date: Wed, 7 Sep 2022 10:21:48 -0700 Subject: [PATCH 1/2] [build] Fix #21255 - allow circular initialization of SimpleStateMachine test. --- src/lib/support/tests/BUILD.gn | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/support/tests/BUILD.gn b/src/lib/support/tests/BUILD.gn index 99cc2801355119..21d3d819c2f850 100644 --- a/src/lib/support/tests/BUILD.gn +++ b/src/lib/support/tests/BUILD.gn @@ -60,7 +60,10 @@ chip_test_suite("tests") { test_sources += [ "TestCHIPArgParser.cpp" ] } - cflags = [ "-Wconversion" ] + cflags = [ + "-Wconversion", + "-Wno-error=uninitialized", + ] public_deps = [ "${chip_root}/src/credentials", From fe805071148ef93680ee55f53616a9fa95990dd9 Mon Sep 17 00:00:00 2001 From: Martin Turon Date: Wed, 7 Sep 2022 14:04:51 -0700 Subject: [PATCH 2/2] [build] Add comment per review feedback. --- src/lib/support/tests/BUILD.gn | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/support/tests/BUILD.gn b/src/lib/support/tests/BUILD.gn index 21d3d819c2f850..866fd6391feabd 100644 --- a/src/lib/support/tests/BUILD.gn +++ b/src/lib/support/tests/BUILD.gn @@ -62,6 +62,8 @@ chip_test_suite("tests") { cflags = [ "-Wconversion", + + # TODO(#21255): work-around for SimpleStateMachine constructor issue. "-Wno-error=uninitialized", ]