Using official ImGui fix for unused variable warning

This commit is contained in:
karlberg
2021-04-27 11:42:05 -07:00
parent 8cb1edb7d7
commit 1a66d8db31
+2 -1
View File
@@ -2080,8 +2080,9 @@ static const char* ImAtoi(const char* src, TYPE* output)
// Sanitize format
// - Zero terminate so extra characters after format (e.g. "%f123") don't confuse atof/atoi
// - stb_sprintf.h supports several new modifiers which format numbers in a way that also makes them incompatible atof/atoi.
static void SanitizeFormatString(const char* fmt, char* fmt_out, [[maybe_unused]] size_t fmt_out_size)
static void SanitizeFormatString(const char* fmt, char* fmt_out, size_t fmt_out_size)
{
IM_UNUSED(fmt_out_size);
const char* fmt_end = ImParseFormatFindEnd(fmt);
IM_ASSERT((size_t)(fmt_end - fmt + 1) < fmt_out_size); // Format is too long, let us know if this happens to you!
while (fmt < fmt_end)