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:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user