Skip to content

Commit 43b4560

Browse files
committed
Implemented MSVC equivalent to -Wno-format-nonliteral
1 parent 2deea1b commit 43b4560

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

s_mp_fprintf.c

+7
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99
#include <string.h>
1010

1111

12+
#ifdef _MSC_VER
13+
/* Ignore warning: "'fprintf' : format string expected in argument 2 is not a string"
14+
because that's how this function works in the first place */
15+
#pragma warning(disable: 4774)
16+
#endif
17+
18+
1219
/* Step to the next character, throw error if there is none */
1320
#define LTM_NEXT_ERROR(x) do{(x)++;if(*(x) == '\0'){goto LTM_ERR;}}while(0)
1421
/* Step to the next character, got to end if there is none */

0 commit comments

Comments
 (0)