Skip to content

Commit 7bbd28d

Browse files
committed
wolfcrypt/src/aes.c: fix clang-diagnostic-unreachable-code in AesSetKey_C().
1 parent 283792c commit 7bbd28d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

wolfcrypt/src/aes.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4987,6 +4987,8 @@ static void AesSetKey_C(Aes* aes, const byte* key, word32 keySz, int dir)
49874987
}
49884988
#endif /* WOLFSSL_AESNI */
49894989

4990+
#ifndef WC_C_DYNAMIC_FALLBACK
4991+
49904992
#if defined(WOLFSSL_ARMASM)
49914993
#if !defined(WOLFSSL_ARMASM_NO_HW_CRYPTO)
49924994
#ifndef __aarch64__
@@ -5117,6 +5119,9 @@ static void AesSetKey_C(Aes* aes, const byte* key, word32 keySz, int dir)
51175119
#endif
51185120
return ret;
51195121
#endif
5122+
5123+
#endif /* !WC_C_DYNAMIC_FALLBACK */
5124+
51205125
} /* wc_AesSetKeyLocal */
51215126

51225127
int wc_AesSetKey(Aes* aes, const byte* userKey, word32 keylen,

0 commit comments

Comments
 (0)