Oh, it turns out there IS a warning for shutting up -pedantic. Woo!

This commit is contained in:
Pietro Gagliardi 2019-06-01 20:26:43 -04:00
parent 6ffe0a4c99
commit bd2877154f
2 changed files with 5 additions and 8 deletions

View File

@ -96,6 +96,11 @@ else
]
if libui_OS == 'windows'
# -pedantic causes warnings without this, even if a function is explicitly marked __attribute__((format(ms_printf)))
# references: https://curl.haxx.se/mail/lib-2012-06/0433.html
libui_project_compile_args += [
'-Wno-pedantic-ms-format',
]
# don't require shipping the MinGW-w64 DLLs
libui_project_link_args += [
'-static',

View File

@ -269,15 +269,7 @@ static void redirectToOnTimeout(CONTEXT *ctx, struct timeoutParams *p)
static void criticalCallFailed(const char *func, HRESULT hr)
{
// sigh, -pedantic... (TODO)
#ifndef _MSC_VER
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wformat"
#endif
fprintf(stderr, "*** internal error in timerRunWithTimeout(): %s failed: 0x%08I32X\n", func, hr);
#ifndef _MSC_VER
#pragma GCC diagnostic pop
#endif
abort();
}