commit | 8508e50d3dbb61014a58e594ca46ee3ffb4c42a0 | [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:43:48 2023 +0100 |
tree | fd8aa94a73f2669335f8b43c6daaff66b73ae06d | |
parent | ed59ea76a6a8b4732d8f0dfd382afd512c41600d [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 8a5b287..e3dfaef 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 ||