Skip to content

Commit 785e32e

Browse files
committed
Move disabling of warning C4003 from makefile.msvc to tommath_private.h
1 parent 6ba6709 commit 785e32e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

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__=1 /D_CRT_HAS_CXX17=0 /Wall /wd4146 /wd4127 /wd4710 /wd4711 /wd4820 /wd4003 /WX $(CFLAGS)
17+
LTM_CFLAGS = /nologo /I./ /D_CRT_SECURE_NO_WARNINGS /D_CRT_NONSTDC_NO_DEPRECATE /D__STDC_WANT_SECURE_LIB__=1 /D_CRT_HAS_CXX17=0 /Wall /wd4146 /wd4127 /wd4710 /wd4711 /wd4820 /WX $(CFLAGS)
1818
LTM_LDFLAGS = advapi32.lib
1919

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

tommath_private.h

+3
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ extern void MP_FREE(void *mem, size_t size);
141141
#endif
142142

143143
/* feature detection macro */
144+
#ifdef _MSC_VER
145+
#pragma warning(disable: 4003)
146+
#endif
144147
#define MP_STRINGIZE(x) MP__STRINGIZE(x)
145148
#define MP__STRINGIZE(x) ""#x""
146149
#define MP_HAS(x) (sizeof(MP_STRINGIZE(BN_##x##_C)) == 1u)

0 commit comments

Comments
 (0)