Skip to content

Commit

Permalink
samples: matter: Add workaround for building Matter Lock
Browse files Browse the repository at this point in the history
Do not treat warnings as errors while the variable may be
uninitialized for Matter Lock. In the door-lock-server
implementation, there is a warning that the C++ "optional" variable
may be uninitialized, but actually, it is wrongly interpreted by
the Zephyr toolchain.

Signed-off-by: Arkadiusz Balys <[email protected]>
  • Loading branch information
ArekBalysNordic authored and anangl committed Jan 22, 2025
1 parent e64a8a2 commit 7874d75
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions samples/matter/lock/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ if(CONFIG_THREAD_WIFI_SWITCHING)
)
endif()

# Do not treat warnings as errors while the variable may be uninitialized for this sample.
# In the door-lock-server implementation, there is a warning that the C++ "optional"
# variable may be uninitialized, but actually, it is wrongly interpreted by the Zephyr toolchain.
target_compile_options(app PRIVATE -Wno-error=maybe-uninitialized)

chip_configure_data_model(app
INCLUDE_SERVER
BYPASS_IDL
Expand Down

0 comments on commit 7874d75

Please sign in to comment.