Skip to content

Commit fa52862

Browse files
committed
Add MSVC boilerplate macro for ignoring format nonliteral
1 parent a3b0c46 commit fa52862

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Include/pyport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ extern "C" {
302302
#elif defined(_MSC_VER)
303303
#define _Py_COMP_DIAG_PUSH __pragma(warning(push))
304304
#define _Py_COMP_DIAG_IGNORE_DEPR_DECLS __pragma(warning(disable: 4996))
305+
#define _Py_COMP_DIAG_IGNORE_DEPR_DECLS
305306
#define _Py_COMP_DIAG_POP __pragma(warning(pop))
306307
#else
307308
#define _Py_COMP_DIAG_PUSH

0 commit comments

Comments
 (0)