From dc25b79db65c367e84e273060d465b9af20c532b Mon Sep 17 00:00:00 2001 From: Eric Blankenhorn Date: Fri, 22 Nov 2019 15:10:13 -0600 Subject: [PATCH] Fix from review --- wolfssl/wolfcrypt/types.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wolfssl/wolfcrypt/types.h b/wolfssl/wolfcrypt/types.h index 3d6f1e752..04800a5f3 100644 --- a/wolfssl/wolfcrypt/types.h +++ b/wolfssl/wolfcrypt/types.h @@ -494,9 +494,14 @@ #endif /* USE_WINDOWS_API */ /* XVASPRINTF is used in ssl.c for wolfSSL_BIO_printf */ + #ifdef __GNUC__ + #define VASPRINTFCHECK __attribute__((format(printf, 2, 0))) + #else + #define VASPRINTFCHECK + #endif /* __GNUC__ */ #if (defined(sun) || defined(__sun) || defined(_AIX)) #include - static WC_INLINE + VASPRINTFCHECK static WC_INLINE int xvasprintf(char **ret, const char *format, va_list args) { int count;