commit | b16841ee69f6fbf2d250ba0369a94eabf54f92eb | [log] [tgz] |
---|---|---|
author | Gilles Peskine <Gilles.Peskine@arm.com> | Thu Oct 10 20:36:12 2019 +0200 |
committer | Gilles Peskine <Gilles.Peskine@arm.com> | Fri Oct 11 18:21:08 2019 +0200 |
tree | d58ec38e2411fb6f52b8a2feb20ff6cf593cea38 | |
parent | fec306452b80365575e66543f328f1ec0946cdd6 [diff] |
Fixed -Wunused warnings when building without asymmetric crypto
diff --git a/include/mbedtls/psa_util.h b/include/mbedtls/psa_util.h index 8d18fcc..a87ca81 100644 --- a/include/mbedtls/psa_util.h +++ b/include/mbedtls/psa_util.h
@@ -230,9 +230,11 @@ *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_BP512R1 ); return( 0 ); #endif /* MBEDTLS_ECP_DP_BP512R1_ENABLED */ + default: + (void) oid; + (void) oid_len; + return( -1 ); } - - return( -1 ); } #define MBEDTLS_PSA_MAX_EC_PUBKEY_LENGTH 1