From de1e1ff6887576ec292b9946642955b09a5f642d Mon Sep 17 00:00:00 2001 From: Eldred Habert Date: Mon, 14 Sep 2026 02:25:13 +0200 Subject: [PATCH] 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. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2be651f8..c1337533 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -195,7 +195,7 @@ else() # 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`. # 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()