mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-03-17 17:37:39 +00:00
Remove deliberate fallthrough
Clang 11 has stopped using the old comment system to mark deliberate fallthrough, and now demands marking of such with __attribute(fallthrough). Given not every compiler supports such attributes and these are the only two deliberate fallthrough cases in the project at the minute, take the easy route and just remove the fallthrough. Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
parent
17605f072b
commit
36f539d9b3
|
@ -92,8 +92,8 @@ static inline psa_algorithm_t mbedtls_psa_translate_cipher_mode(
|
|||
case MBEDTLS_MODE_CBC:
|
||||
if( taglen == 0 )
|
||||
return( PSA_ALG_CBC_NO_PADDING );
|
||||
/* Intentional fallthrough for taglen != 0 */
|
||||
/* fallthrough */
|
||||
else
|
||||
return( 0 );
|
||||
default:
|
||||
return( 0 );
|
||||
}
|
||||
|
@ -151,7 +151,8 @@ static inline psa_algorithm_t mbedtls_psa_translate_md( mbedtls_md_type_t md_alg
|
|||
case MBEDTLS_MD_RIPEMD160:
|
||||
return( PSA_ALG_RIPEMD160 );
|
||||
#endif
|
||||
case MBEDTLS_MD_NONE: /* Intentional fallthrough */
|
||||
case MBEDTLS_MD_NONE:
|
||||
return( 0 );
|
||||
default:
|
||||
return( 0 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue