Skip to content

Commit 5ab356d

Browse files
committed
Set _CRT_SECURE_NO_WARNINGS in gsw_check_functions.c
This ignores MSVC warnings about unsafe functions in the gsw_check_functions.c file (strcpy strncat strcat). While the security advice may be sound in the context of the main library, these functions are are not a security risk in the context of this test executable.
1 parent 130b114 commit 5ab356d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

gsw_check_functions.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
** $Id: gsw_check_functions.c,v 0db1b20bdf1b 2015/08/26 21:39:20 fdelahoyde $
33
** $Version: 3.05.0-1 $
44
*/
5+
6+
/* This ignores MSVC warnings about "unsafe: functions (strcpy, strncat,
7+
** strcat) in the gsw_check_functions.c file . While the security advice
8+
** may be sound in the context of the main library, these functions do not pose
9+
** a security risk in the context of this test executable.
10+
*/
11+
#define _CRT_SECURE_NO_WARNINGS
12+
513
#include <stdio.h>
614
#include <stdarg.h>
715
#include <string.h>

0 commit comments

Comments
 (0)