Skip to content

Commit

Permalink
Set _CRT_SECURE_NO_WARNINGS in gsw_check_functions.c
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
peter-urban committed Nov 12, 2024
1 parent 130b114 commit 5ab356d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gsw_check_functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
** $Id: gsw_check_functions.c,v 0db1b20bdf1b 2015/08/26 21:39:20 fdelahoyde $
** $Version: 3.05.0-1 $
*/

/* This ignores MSVC warnings about "unsafe: functions (strcpy, strncat,
** strcat) in the gsw_check_functions.c file . While the security advice
** may be sound in the context of the main library, these functions do not pose
** a security risk in the context of this test executable.
*/
#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>
#include <stdarg.h>
#include <string.h>
Expand Down

0 comments on commit 5ab356d

Please sign in to comment.