@@ -25,6 +25,7 @@ extern "C" {
2525 */
2626#if defined(CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT)
2727#define ESP_RETURN_ON_ERROR (x, log_tag, format, ...) do { \
28+ (void )log_tag; \
2829 esp_err_t err_rc_ = (x); \
2930 if (unlikely (err_rc_ != ESP_OK)) { \
3031 return err_rc_; \
@@ -35,6 +36,7 @@ extern "C" {
3536 * A version of ESP_RETURN_ON_ERROR() macro that can be called from ISR.
3637 */
3738#define ESP_RETURN_ON_ERROR_ISR (x, log_tag, format, ...) do { \
39+ (void )log_tag; \
3840 esp_err_t err_rc_ = (x); \
3941 if (unlikely (err_rc_ != ESP_OK)) { \
4042 return err_rc_; \
@@ -46,6 +48,7 @@ extern "C" {
4648 * sets the local variable 'ret' to the code, and then exits by jumping to 'goto_tag'.
4749 */
4850#define ESP_GOTO_ON_ERROR (x, goto_tag, log_tag, format, ...) do { \
51+ (void )log_tag; \
4952 esp_err_t err_rc_ = (x); \
5053 if (unlikely (err_rc_ != ESP_OK)) { \
5154 ret = err_rc_; \
@@ -57,6 +60,7 @@ extern "C" {
5760 * A version of ESP_GOTO_ON_ERROR() macro that can be called from ISR.
5861 */
5962#define ESP_GOTO_ON_ERROR_ISR (x, goto_tag, log_tag, format, ...) do { \
63+ (void )log_tag; \
6064 esp_err_t err_rc_ = (x); \
6165 if (unlikely (err_rc_ != ESP_OK)) { \
6266 ret = err_rc_; \
@@ -69,6 +73,7 @@ extern "C" {
6973 * and returns with the supplied 'err_code'.
7074 */
7175#define ESP_RETURN_ON_FALSE (a, err_code, log_tag, format, ...) do { \
76+ (void )log_tag; \
7277 if (unlikely (!(a))) { \
7378 return err_code; \
7479 } \
@@ -78,6 +83,7 @@ extern "C" {
7883 * A version of ESP_RETURN_ON_FALSE() macro that can be called from ISR.
7984 */
8085#define ESP_RETURN_ON_FALSE_ISR (a, err_code, log_tag, format, ...) do { \
86+ (void )log_tag; \
8187 if (unlikely (!(a))) { \
8288 return err_code; \
8389 } \
@@ -88,6 +94,7 @@ extern "C" {
8894 * sets the local variable 'ret' to the supplied 'err_code', and then exits by jumping to 'goto_tag'.
8995 */
9096#define ESP_GOTO_ON_FALSE (a, err_code, goto_tag, log_tag, format, ...) do { \
97+ (void )log_tag; \
9198 if (unlikely (!(a))) { \
9299 ret = err_code; \
93100 goto goto_tag; \
@@ -98,6 +105,7 @@ extern "C" {
98105 * A version of ESP_GOTO_ON_FALSE() macro that can be called from ISR.
99106 */
100107#define ESP_GOTO_ON_FALSE_ISR (a, err_code, goto_tag, log_tag, format, ...) do { \
108+ (void )log_tag; \
101109 if (unlikely (!(a))) { \
102110 ret = err_code; \
103111 goto goto_tag; \
0 commit comments