]> granicus.if.org Git - esp-idf/commit
fix warnings generated by ESP_ERROR_CHECK(variable) in release builds
authorIvan Grokhotkov <ivan@espressif.com>
Fri, 7 Apr 2017 07:24:58 +0000 (15:24 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Fri, 7 Apr 2017 07:24:58 +0000 (15:24 +0800)
commit275b574ace7f02f2ca127bab19f19af1dbace236
tree4b626e1a2822529ad7574d71cc3c1d633959c484
parentfd0539b4ba48753de01ad4ff2a6efad93f89e122
fix warnings generated by ESP_ERROR_CHECK(variable) in release builds

This uses the same pattern as “assert” in release builds to silence the
warning. At the same time, we make sure that if a statement is wrapped
into ESP_ERROR_CHECK, it is executed in release build as well.
components/esp32/include/esp_err.h