Fix warning message C4100 (#3974)

- warning C4100: 'fmt_out_size': unreferenced formal parameter
This commit is contained in:
Chris Ohk 2021-03-28 01:11:57 +09:00 committed by GitHub
parent c6c15a44fa
commit eab3ae473c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2082,6 +2082,7 @@ static const char* ImAtoi(const char* src, TYPE* output)
// - stb_sprintf.h supports several new modifiers which format numbers in a way that also makes them incompatible 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, 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); 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! 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) while (fmt < fmt_end)