This is an automated email from the ASF dual-hosted git repository.

kasjer 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 b0838cbdc crypto_stm32: Fix build warning
b0838cbdc is described below

commit b0838cbdcacbb414573e612f1ecd8866f4457e31
Author: Jerzy Kasenberg <[email protected]>
AuthorDate: Sun Jun 7 17:04:24 2026 +0200

    crypto_stm32: Fix build warning
    
    Warning:
    Error: 
repos/apache-mynewt-core/hw/drivers/crypto/crypto_stm32/src/crypto_stm32.c: In 
function 'stm32_crypto_op':
    
repos/apache-mynewt-core/hw/drivers/crypto/crypto_stm32/src/crypto_stm32.c:134:13:
 error: 'conf.pInitVect' may be used uninitialized [-Werror=maybe-uninitialized]
      134 |     if (conf.pInitVect != NULL) {
          |         ~~~~^~~~~~~~~~
    
repos/apache-mynewt-core/hw/drivers/crypto/crypto_stm32/src/crypto_stm32.c:86:24:
 note: 'conf' declared here
       86 |     CRYP_ConfigTypeDef conf;
          |                        ^~~~
    
    is now fixed by initialisation conf variable
    
    Signed-off-by: Jerzy Kasenberg <[email protected]>
---
 hw/drivers/crypto/crypto_stm32/src/crypto_stm32.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/drivers/crypto/crypto_stm32/src/crypto_stm32.c 
b/hw/drivers/crypto/crypto_stm32/src/crypto_stm32.c
index dc9652eeb..a13768edd 100644
--- a/hw/drivers/crypto/crypto_stm32/src/crypto_stm32.c
+++ b/hw/drivers/crypto/crypto_stm32/src/crypto_stm32.c
@@ -83,7 +83,7 @@ stm32_crypto_op(struct crypto_dev *crypto, uint8_t op, 
uint16_t algo,
         const uint8_t *inbuf, uint8_t *outbuf, uint32_t len)
 {
     HAL_StatusTypeDef status;
-    CRYP_ConfigTypeDef conf;
+    CRYP_ConfigTypeDef conf = { 0 };
     uint32_t sz = 0;
     uint8_t i;
 #if MYNEWT_VAL(CRYPTO_HW_AES_CTR)

Reply via email to