mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-12 04:45:36 +00:00
Remove unused variable warning in on-demand X.509 parsing
This commit is contained in:
parent
7c5fbbeec0
commit
60785d113b
|
@ -866,8 +866,14 @@ static inline int mbedtls_x509_crt_frame_release( mbedtls_x509_crt const *crt )
|
||||||
#endif /* MBEDTLS_THREADING_C */
|
#endif /* MBEDTLS_THREADING_C */
|
||||||
|
|
||||||
#if defined(MBEDTLS_X509_ALWAYS_FLUSH)
|
#if defined(MBEDTLS_X509_ALWAYS_FLUSH)
|
||||||
(void) mbedtls_x509_crt_flush_cache_frame( crt );
|
(void) mbedtls_x509_crt_flush_cache_frame( crt );
|
||||||
#endif /* MBEDTLS_X509_ALWAYS_FLUSH */
|
#endif /* MBEDTLS_X509_ALWAYS_FLUSH */
|
||||||
|
|
||||||
|
#if !defined(MBEDTLS_X509_ALWAYS_FLUSH) && \
|
||||||
|
!defined(MBEDTLS_THREADING_C)
|
||||||
|
((void) crt);
|
||||||
|
#endif
|
||||||
|
|
||||||
return( 0 );
|
return( 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -948,9 +954,14 @@ static inline int mbedtls_x509_crt_pk_release( mbedtls_x509_crt const *crt )
|
||||||
#endif /* MBEDTLS_THREADING_C */
|
#endif /* MBEDTLS_THREADING_C */
|
||||||
|
|
||||||
#if defined(MBEDTLS_X509_ALWAYS_FLUSH)
|
#if defined(MBEDTLS_X509_ALWAYS_FLUSH)
|
||||||
(void) mbedtls_x509_crt_flush_cache_pk( crt );
|
(void) mbedtls_x509_crt_flush_cache_pk( crt );
|
||||||
#endif /* MBEDTLS_X509_ALWAYS_FLUSH */
|
#endif /* MBEDTLS_X509_ALWAYS_FLUSH */
|
||||||
|
|
||||||
|
#if !defined(MBEDTLS_X509_ALWAYS_FLUSH) && \
|
||||||
|
!defined(MBEDTLS_THREADING_C)
|
||||||
|
((void) crt);
|
||||||
|
#endif
|
||||||
|
|
||||||
return( 0 );
|
return( 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue