Skip to content

Commit 5127596

Browse files
nijtmanssjaeckel
authored andcommitted
Attempt to eliminate more MSVC compiler warnings
1 parent f562d65 commit 5127596

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

bn_s_mp_rand_platform.c

+7
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,16 @@
2222
#define ARM
2323
#endif
2424

25+
#ifdef _MSC_VER
26+
# pragma warning(push)
27+
# pragma warning (disable : 4668)
28+
#endif
2529
#define WIN32_LEAN_AND_MEAN
2630
#include <windows.h>
2731
#include <wincrypt.h>
32+
#ifdef _MSC_VER
33+
# pragma warning(pop)
34+
#endif
2835

2936
static mp_err s_read_win_csp(void *p, size_t n)
3037
{

makefile.msvc

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ PREFIX = c:\devel
1414
CFLAGS = /Ox
1515

1616
#Compilation flags
17-
LTM_CFLAGS = /nologo /I./ /D_CRT_SECURE_NO_WARNINGS /D_CRT_NONSTDC_NO_DEPRECATE /D__STDC_WANT_SECURE_LIB__=0 /Wall /wd4146 /wd4127 /wd4710 /wd4711 /wd4820 $(CFLAGS)
17+
LTM_CFLAGS = /nologo /I./ /D_CRT_SECURE_NO_WARNINGS /D_CRT_NONSTDC_NO_DEPRECATE /D__STDC_WANT_SECURE_LIB__=1 /Wall /wd4146 /wd4127 /wd4710 /wd4711 /wd4820 $(CFLAGS)
1818
LTM_LDFLAGS = advapi32.lib
1919

2020
#Libraries to be created (this makefile builds only static libraries)

0 commit comments

Comments
 (0)