mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 20:54:41 +02:00
fixes for clang-tidy complaints with NO_ERROR_STRINGS.
This commit is contained in:
@@ -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__); \
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user