mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 19:54:40 +02:00
added pragma to new errors.c to hush a warning in Windows build
This commit is contained in:
@@ -25,6 +25,12 @@
|
|||||||
|
|
||||||
#include <cyassl/ctaocrypt/error.h>
|
#include <cyassl/ctaocrypt/error.h>
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
/* 4996 warning to use MS extensions e.g., strcpy_s instead of XSTRNCPY */
|
||||||
|
#pragma warning(disable: 4996)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
void CTaoCryptErrorString(int error, char* buffer)
|
void CTaoCryptErrorString(int error, char* buffer)
|
||||||
{
|
{
|
||||||
const int max = MAX_ERROR_SZ; /* shorthand */
|
const int max = MAX_ERROR_SZ; /* shorthand */
|
||||||
|
Reference in New Issue
Block a user