Skip to content

Commit

Permalink
fixes for clang-tidy complaints with NO_ERROR_STRINGS.
Browse files Browse the repository at this point in the history
  • Loading branch information
douzzer committed Jan 24, 2025
1 parent 1b27ca4 commit 3516c88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wolfcrypt/benchmark/benchmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@
#undef LIBCALL_CHECK_RET
#if defined(NO_STDIO_FILESYSTEM) || defined(NO_ERROR_STRINGS) || \
defined(NO_MAIN_DRIVER) || defined(BENCH_EMBEDDED)
#define LIBCALL_CHECK_RET(...) __VA_ARGS__
#define LIBCALL_CHECK_RET(...) (void)(__VA_ARGS__)
#else
#define LIBCALL_CHECK_RET(...) do { \
int _libcall_ret = (__VA_ARGS__); \
Expand Down
2 changes: 1 addition & 1 deletion wolfssl/wolfcrypt/error-crypt.h
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ wc_static_assert((int)MIN_CODE_E <= (int)WC_SPAN2_MIN_CODE_E);
#ifdef NO_ERROR_STRINGS
#define wc_GetErrorString(error) "no support for error strings built in"
#define wc_ErrorString(err, buf) \
(void)err; XSTRNCPY((buf), wc_GetErrorString((err)), \
(void)(err); XSTRNCPY((buf), wc_GetErrorString(err), \
WOLFSSL_MAX_ERROR_SZ);

#else
Expand Down

0 comments on commit 3516c88

Please sign in to comment.