mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Disable some spurious MSVC warnings
Not that it will de-clutter our CI logs very much, but eh, you know.
This commit is contained in:
@@ -21,10 +21,12 @@ option(SANITIZERS "Build with sanitizers enabled" OFF) # Ignored on MSVC
|
|||||||
option(MORE_WARNINGS "Turn on more warnings" OFF) # Ignored on MSVC
|
option(MORE_WARNINGS "Turn on more warnings" OFF) # Ignored on MSVC
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
# MSVC's standard library triggers warning C5105,
|
# MSVC's own standard library triggers warning C5105,
|
||||||
# "macro expansion producing 'defined' has undefined behavior"
|
# "macro expansion producing 'defined' has undefined behavior".
|
||||||
|
# Warning C5030 is about unknown attributes (`[[gnu::ATTR]]`), none of ours being load-bearing.
|
||||||
|
# Warning C4996 is about using POSIX names, which we want to do for portability.
|
||||||
# We also opt into the C++20-conformant preprocessor.
|
# We also opt into the C++20-conformant preprocessor.
|
||||||
add_compile_options(/MP /wd5105 /Zc:preprocessor)
|
add_compile_options(/MP /wd5105 /wd5030 /wd4996 /Zc:preprocessor)
|
||||||
add_definitions(/D_CRT_SECURE_NO_WARNINGS)
|
add_definitions(/D_CRT_SECURE_NO_WARNINGS)
|
||||||
|
|
||||||
if(SANITIZERS)
|
if(SANITIZERS)
|
||||||
|
|||||||
Reference in New Issue
Block a user