commit | bd771820637ee26a3df6bf9933fa59803fdaf595 | [log] [tgz] |
---|---|---|
author | Dave Rodgman <dave.rodgman@arm.com> | Tue May 16 16:43:48 2023 +0100 |
committer | Dave Rodgman <dave.rodgman@arm.com> | Tue May 16 16:47:09 2023 +0100 |
tree | d34f619a5708a66adfd472e52a3c7002ca73efc8 | |
parent | 001917898f48b4c7f8951085ed2f96c696615bae [diff] [blame] |
Make use of MBEDTLS_STATIC_ASSERT Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
diff --git a/library/debug.c b/library/debug.c index 658d1c9..3e794b5 100644 --- a/library/debug.c +++ b/library/debug.c
@@ -70,9 +70,7 @@ char str[DEBUG_BUF_SIZE]; int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED; -#if defined(static_assert) - static_assert(DEBUG_BUF_SIZE >= 2) -#endif + MBEDTLS_STATIC_ASSERT(DEBUG_BUF_SIZE >= 2, "DEBUG_BUF_SIZE too small"); if (NULL == ssl || NULL == ssl->conf ||