You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2022/04/19 16:53:03 UTC

[mynewt-core] branch master updated: MbedTLS: Suppress gcc 10 warning

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

jerzy 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 fe7c49d7b MbedTLS: Suppress gcc 10 warning
fe7c49d7b is described below

commit fe7c49d7b5e14eec151dabbe847b67bca21c338d
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Tue Apr 19 12:28:47 2022 +0200

    MbedTLS: Suppress gcc 10 warning
    
    Debug build compiled with gcc 10.x (arm and riscv) produces
    warning:
    repos/apache-mynewt-core/crypto/mbedtls/src/hmac_drbg.c:134:11: error: 'ret' may be used uninitialized in this function [-Werror=maybe-uninitialized]
      134 |     return( ret );
    
    This warning is incorrect and now is suppressed.
---
 crypto/mbedtls/pkg.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/crypto/mbedtls/pkg.yml b/crypto/mbedtls/pkg.yml
index f4defa7ce..1ff44a0a4 100644
--- a/crypto/mbedtls/pkg.yml
+++ b/crypto/mbedtls/pkg.yml
@@ -25,5 +25,7 @@ pkg.keywords:
     - ssl
     - tls
 
-pkg.cflags: '-DMBEDTLS_USER_CONFIG_FILE=<mbedtls/config_mynewt.h>'
+pkg.cflags:
+    - '-DMBEDTLS_USER_CONFIG_FILE=<mbedtls/config_mynewt.h>'
+    - -Wno-maybe-uninitialized
 pkg.cflags.TEST: -DTEST