Fix unused variable warning

TAG constant is only used when run limit is enabled. As a result,
the compiler generates an "unused variable" warning for other cases.
Fixed this warning by adding the unused attribute.
This commit is contained in:
2025-09-13 09:45:13 +03:00
parent 5440440c4d
commit 300f9a1317

View File

@@ -15,7 +15,7 @@
#include "relay_chn_nvs.h" #include "relay_chn_nvs.h"
#endif #endif
static const char *TAG = "RELAY_CHN_CTL"; static const char *TAG __attribute__((unused)) = "RELAY_CHN_CTL";
static relay_chn_ctl_t s_chn_ctl; static relay_chn_ctl_t s_chn_ctl;