added pragma to new errors.c to hush a warning in Windows build

pull/1/head
John Safranek 2012-11-01 16:40:59 -07:00
parent 5e48dcbeeb
commit a8c0351fe4
1 changed files with 6 additions and 0 deletions

View File

@ -25,6 +25,12 @@
#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)
{
const int max = MAX_ERROR_SZ; /* shorthand */