Skip to content

Commit

Permalink
Implemented MSVC equivalent to -Wno-format-nonliteral
Browse files Browse the repository at this point in the history
  • Loading branch information
czurnieden committed May 30, 2023
1 parent 82c5cd4 commit ac08c11
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions s_mp_fprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
#include <string.h>


#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 */
Expand Down

0 comments on commit ac08c11

Please sign in to comment.