Fix printf format warnings on mingw clang (#4626, #4183, #3592)

This commit is contained in:
Guus Waals
2021-09-17 18:14:13 +02:00
committed by ocornut
parent 164a86d3b0
commit 30db674147
2 changed files with 2 additions and 1 deletions

View File

@ -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__))