diff --git a/src/app/clusters/general-diagnostics-server/general-diagnostics-server.cpp b/src/app/clusters/general-diagnostics-server/general-diagnostics-server.cpp index 4e6cced6dd2e21..0c5cf641268ad9 100644 --- a/src/app/clusters/general-diagnostics-server/general-diagnostics-server.cpp +++ b/src/app/clusters/general-diagnostics-server/general-diagnostics-server.cpp @@ -20,7 +20,9 @@ #include #ifdef ZCL_USING_TIME_SYNCHRONIZATION_CLUSTER_SERVER -#include "app/clusters/time-synchronization-server/time-synchronization-server.h" +// Need the `nogncheck` because it's inter-cluster dependency and this +// breaks GN deps checks since that doesn't know how to deal with #ifdef'd includes :(. +#include "app/clusters/time-synchronization-server/time-synchronization-server.h" // nogncheck #endif // ZCL_USING_TIME_SYNCHRONIZATION_CLUSTER_SERVER #include "app/server/Server.h"