From 7822484aaa0415ca534bd4c066d6d0ca1372fbd1 Mon Sep 17 00:00:00 2001 From: "V.Dudnik" Date: Mon, 6 May 2019 09:52:53 +0300 Subject: [PATCH] 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 --- components/efuse/src/esp_efuse_fields.c | 1 + 1 file changed, 1 insertion(+) 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); }