From 43b456031aea789b8b5331be85a84e23f57e38e6 Mon Sep 17 00:00:00 2001 From: czurnieden Date: Tue, 30 May 2023 16:22:14 +0200 Subject: [PATCH] Implemented MSVC equivalent to -Wno-format-nonliteral --- s_mp_fprintf.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/s_mp_fprintf.c b/s_mp_fprintf.c index d1855575..77ac7d33 100644 --- a/s_mp_fprintf.c +++ b/s_mp_fprintf.c @@ -9,6 +9,13 @@ #include +#ifdef _MSC_VER +/* Ignore warning: "'fprintf' : format string expected in argument 2 is not a string" + because that's how this function works in the first place */ +#pragma warning(disable: 4774) +#endif + + /* Step to the next character, throw error if there is none */ #define LTM_NEXT_ERROR(x) do{(x)++;if(*(x) == '\0'){goto LTM_ERR;}}while(0) /* Step to the next character, got to end if there is none */