fixes for clang-tidy complaints with NO_ERROR_STRINGS.

This commit is contained in:
Daniel Pouzzner
2025-01-23 16:15:49 -06:00
parent 0ec17dfed5
commit 09ac8c69db
2 changed files with 2 additions and 2 deletions

View File

@@ -586,7 +586,7 @@
#undef LIBCALL_CHECK_RET #undef LIBCALL_CHECK_RET
#if defined(NO_STDIO_FILESYSTEM) || defined(NO_ERROR_STRINGS) || \ #if defined(NO_STDIO_FILESYSTEM) || defined(NO_ERROR_STRINGS) || \
defined(NO_MAIN_DRIVER) || defined(BENCH_EMBEDDED) defined(NO_MAIN_DRIVER) || defined(BENCH_EMBEDDED)
#define LIBCALL_CHECK_RET(...) __VA_ARGS__ #define LIBCALL_CHECK_RET(...) (void)(__VA_ARGS__)
#else #else
#define LIBCALL_CHECK_RET(...) do { \ #define LIBCALL_CHECK_RET(...) do { \
int _libcall_ret = (__VA_ARGS__); \ int _libcall_ret = (__VA_ARGS__); \

View File

@@ -326,7 +326,7 @@ wc_static_assert((int)MIN_CODE_E <= (int)WC_SPAN2_MIN_CODE_E);
#ifdef NO_ERROR_STRINGS #ifdef NO_ERROR_STRINGS
#define wc_GetErrorString(error) "no support for error strings built in" #define wc_GetErrorString(error) "no support for error strings built in"
#define wc_ErrorString(err, buf) \ #define wc_ErrorString(err, buf) \
(void)err; XSTRNCPY((buf), wc_GetErrorString((err)), \ (void)(err); XSTRNCPY((buf), wc_GetErrorString(err), \
WOLFSSL_MAX_ERROR_SZ); WOLFSSL_MAX_ERROR_SZ);
#else #else