mirror of
https://github.com/gbdev/rgbds.git
synced 2026-05-08 10:59:36 +00:00
Make -Wformat non-fatal on MinGW
See the comment for a rationale.
This commit is contained in:
@@ -163,6 +163,14 @@ else()
|
|||||||
-Wno-type-limits -Wno-tautological-constant-out-of-range-compare
|
-Wno-type-limits -Wno-tautological-constant-out-of-range-compare
|
||||||
-Wvla) # MSVC does not support VLAs
|
-Wvla) # MSVC does not support VLAs
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(MINGW)
|
||||||
|
# MinGW warns about format specifiers like `%z` and `%j`, which are missing on Windows XP and earlier.
|
||||||
|
# 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)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
|||||||
Reference in New Issue
Block a user