This is an automated email from the ASF dual-hosted git repository.
andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new 263bcfa7a crypto: tinycrypt: Fix spurious uninitialized array error
263bcfa7a is described below
commit 263bcfa7a7c5cfa991223f2746ecffd11448fb76
Author: Mariusz Skamra <[email protected]>
AuthorDate: Tue Nov 26 10:44:59 2024 +0100
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 | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/crypto/tinycrypt/pkg.yml b/crypto/tinycrypt/pkg.yml
index aa7c84cfc..a601feae7 100644
--- a/crypto/tinycrypt/pkg.yml
+++ b/crypto/tinycrypt/pkg.yml
@@ -24,7 +24,9 @@ pkg.homepage: "http://mynewt.apache.org/"
pkg.keywords:
pkg.cflags:
- - "-std=c99"
+ - -std=c99
+ - -Wno-maybe-uninitialized
+ - -Wno-unknown-warning-option
pkg.deps.TINYCRYPT_UECC_RNG_USE_TRNG:
- "@apache-mynewt-core/hw/drivers/trng"