From: V.Dudnik Date: Mon, 6 May 2019 06:52:53 +0000 (+0300) Subject: efuse: Fix unused variable warning when NDEBUG X-Git-Tag: v4.0-beta1~335^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7822484aaa0415ca534bd4c066d6d0ca1372fbd1;p=esp-idf efuse: Fix unused variable warning when NDEBUG Merges: https://github.com/espressif/esp-idf/pull/3429 Closes: https://github.com/espressif/esp-idf/issues/3432 --- diff --git a/components/efuse/src/esp_efuse_fields.c b/components/efuse/src/esp_efuse_fields.c index bee02641f1..15b41b7283 100644 --- a/components/efuse/src/esp_efuse_fields.c +++ b/components/efuse/src/esp_efuse_fields.c @@ -104,6 +104,7 @@ void esp_efuse_write_random_key(uint32_t blk_wdata0_reg) } else { // 3/4 Coding Scheme bootloader_fill_random(raw, sizeof(raw)); esp_err_t r = esp_efuse_apply_34_encoding(raw, buf, sizeof(raw)); + (void) r; assert(r == ESP_OK); }