From 300f9a13172a68a90a89587c5074b27bce82caab Mon Sep 17 00:00:00 2001 From: ismail Date: Sat, 13 Sep 2025 09:45:13 +0300 Subject: [PATCH] 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. --- src/relay_chn_ctl_single.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/relay_chn_ctl_single.c b/src/relay_chn_ctl_single.c index dcb3ac7..753174d 100644 --- a/src/relay_chn_ctl_single.c +++ b/src/relay_chn_ctl_single.c @@ -15,7 +15,7 @@ #include "relay_chn_nvs.h" #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;