Actually silence -Wformat et al. on MinGW (#2084)

Thus far, we have just ensured they wouldn't fail the build,
but they still pollute the build log, so we should silence them entirely.
This commit is contained in:
Eldred Habert
2026-09-13 20:25:13 -04:00
committed by GitHub
parent f8a1da71c1
commit de1e1ff688
+1 -1
View File
@@ -195,7 +195,7 @@ else()
# We rely on runtimes more modern than that, so we can ignore those warnings. # We rely on runtimes more modern than that, so we can ignore those warnings.
# If this is a problem for you: use Microsoft's equivalents, or define `__USE_MINGW_ANSI_STDIO=1`. # If this is a problem for you: use Microsoft's equivalents, or define `__USE_MINGW_ANSI_STDIO=1`.
# https://sourceforge.net/p/mingw-w64/wiki2/gnu%20printf/ # https://sourceforge.net/p/mingw-w64/wiki2/gnu%20printf/
add_compile_options(-Wno-error=format -Wno-error=format-extra-args) add_compile_options(-Wno-format -Wno-format-extra-args)
endif() endif()
endif() endif()