From 4c11a0789dcff961c7e11194b21e569a45667d89 Mon Sep 17 00:00:00 2001 From: Mariusz Skamra Date: Tue, 26 Nov 2024 10:44:59 +0100 Subject: [PATCH] crypto: tinycrypt: Fix spurious uninitialized array error This disables maybe-uninitialized compilation option in tinycrypt library to fix spurious compilation errors. Error: In function 'uECC_vli_modMult_fast', inlined from 'uECC_vli_modSquare_fast' at repos/apache-mynewt-core/crypto/tinycrypt/src/ecc.c:386:2, inlined from 'XYcZ_addC' at repos/apache-mynewt-core/crypto/tinycrypt/src/ecc.c:702:2: repos/apache-mynewt-core/crypto/tinycrypt/src/ecc.c:377:9: error: 't5' may be used uninitialized [-Werror=maybe-uninitialized] 377 | uECC_vli_mult(product, left, right, curve->num_words); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- crypto/tinycrypt/pkg.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/tinycrypt/pkg.yml b/crypto/tinycrypt/pkg.yml index aa7c84cfcb..f1a8614b34 100644 --- a/crypto/tinycrypt/pkg.yml +++ b/crypto/tinycrypt/pkg.yml @@ -24,7 +24,7 @@ pkg.homepage: "http://mynewt.apache.org/" pkg.keywords: pkg.cflags: - - "-std=c99" + - "-std=c99 -Wno-maybe-uninitialized" pkg.deps.TINYCRYPT_UECC_RNG_USE_TRNG: - "@apache-mynewt-core/hw/drivers/trng"