diff --git a/examples/platform/silabs/uart.cpp b/examples/platform/silabs/uart.cpp index 0fe6488d3c7a6d..6ef768ac652e19 100644 --- a/examples/platform/silabs/uart.cpp +++ b/examples/platform/silabs/uart.cpp @@ -16,7 +16,9 @@ * limitations under the License. */ #include "AppConfig.h" -#include "MatterShell.h" +#ifdef ENABLE_CHIP_SHELL +#include "MatterShell.h" // nogncheck +#endif #include #include #include