Skip to content

Commit

Permalink
Fix printf format warnings on mingw clang
Browse files Browse the repository at this point in the history
  • Loading branch information
guusw committed Oct 4, 2021
1 parent 677fe33 commit 19f1baf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imgui.h
Expand Up @@ -92,7 +92,7 @@ Index of this file:
#endif

// Helper Macros - IM_FMTARGS, IM_FMTLIST: Apply printf-style warnings to our formatting functions.
#if !defined(IMGUI_USE_STB_SPRINTF) && defined(__MINGW32__)
#if !defined(IMGUI_USE_STB_SPRINTF) && defined(__MINGW32__) && !defined(__clang__)
#define IM_FMTARGS(FMT) __attribute__((format(gnu_printf, FMT, FMT+1)))
#define IM_FMTLIST(FMT) __attribute__((format(gnu_printf, FMT, 0)))
#elif !defined(IMGUI_USE_STB_SPRINTF) && (defined(__clang__) || defined(__GNUC__))
Expand Down

0 comments on commit 19f1baf

Please sign in to comment.