@@ -25,6 +25,7 @@ extern "C" {
25
25
*/
26
26
#if defined(CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT)
27
27
#define ESP_RETURN_ON_ERROR (x, log_tag, format, ...) do { \
28
+ (void )log_tag; \
28
29
esp_err_t err_rc_ = (x); \
29
30
if (unlikely (err_rc_ != ESP_OK)) { \
30
31
return err_rc_; \
@@ -35,6 +36,7 @@ extern "C" {
35
36
* A version of ESP_RETURN_ON_ERROR() macro that can be called from ISR.
36
37
*/
37
38
#define ESP_RETURN_ON_ERROR_ISR (x, log_tag, format, ...) do { \
39
+ (void )log_tag; \
38
40
esp_err_t err_rc_ = (x); \
39
41
if (unlikely (err_rc_ != ESP_OK)) { \
40
42
return err_rc_; \
@@ -46,6 +48,7 @@ extern "C" {
46
48
* sets the local variable 'ret' to the code, and then exits by jumping to 'goto_tag'.
47
49
*/
48
50
#define ESP_GOTO_ON_ERROR (x, goto_tag, log_tag, format, ...) do { \
51
+ (void )log_tag; \
49
52
esp_err_t err_rc_ = (x); \
50
53
if (unlikely (err_rc_ != ESP_OK)) { \
51
54
ret = err_rc_; \
@@ -57,6 +60,7 @@ extern "C" {
57
60
* A version of ESP_GOTO_ON_ERROR() macro that can be called from ISR.
58
61
*/
59
62
#define ESP_GOTO_ON_ERROR_ISR (x, goto_tag, log_tag, format, ...) do { \
63
+ (void )log_tag; \
60
64
esp_err_t err_rc_ = (x); \
61
65
if (unlikely (err_rc_ != ESP_OK)) { \
62
66
ret = err_rc_; \
@@ -69,6 +73,7 @@ extern "C" {
69
73
* and returns with the supplied 'err_code'.
70
74
*/
71
75
#define ESP_RETURN_ON_FALSE (a, err_code, log_tag, format, ...) do { \
76
+ (void )log_tag; \
72
77
if (unlikely (!(a))) { \
73
78
return err_code; \
74
79
} \
@@ -78,6 +83,7 @@ extern "C" {
78
83
* A version of ESP_RETURN_ON_FALSE() macro that can be called from ISR.
79
84
*/
80
85
#define ESP_RETURN_ON_FALSE_ISR (a, err_code, log_tag, format, ...) do { \
86
+ (void )log_tag; \
81
87
if (unlikely (!(a))) { \
82
88
return err_code; \
83
89
} \
@@ -88,6 +94,7 @@ extern "C" {
88
94
* sets the local variable 'ret' to the supplied 'err_code', and then exits by jumping to 'goto_tag'.
89
95
*/
90
96
#define ESP_GOTO_ON_FALSE (a, err_code, goto_tag, log_tag, format, ...) do { \
97
+ (void )log_tag; \
91
98
if (unlikely (!(a))) { \
92
99
ret = err_code; \
93
100
goto goto_tag; \
@@ -98,6 +105,7 @@ extern "C" {
98
105
* A version of ESP_GOTO_ON_FALSE() macro that can be called from ISR.
99
106
*/
100
107
#define ESP_GOTO_ON_FALSE_ISR (a, err_code, goto_tag, log_tag, format, ...) do { \
108
+ (void )log_tag; \
101
109
if (unlikely (!(a))) { \
102
110
ret = err_code; \
103
111
goto goto_tag; \
0 commit comments