Skip to content

Commit

Permalink
Suppress MSVC C4996 unsafe function or variable warnings (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
gyk4j authored Aug 19, 2024
1 parent 601a6be commit 0f55a0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions c/wsgup/include/main.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#ifndef MAIN_H
#define MAIN_H

#ifdef _MSC_VER
#define _CRT_SECURE_NO_WARNINGS
#endif

#define NONCE_LENGTH 12
#define TAG_LENGTH 16

Expand Down
4 changes: 4 additions & 0 deletions c/wsgup/src/main.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#ifdef _MSC_VER
#define _CRT_SECURE_NO_WARNINGS
#endif

#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down

0 comments on commit 0f55a0b

Please sign in to comment.