build: disable 'conditional expression is constant' warning
Visual Studio 2013 often generates this warning when it encounters a
`do { ... } while (0)` construct, which is commonly used in preprocessor
macros.
This commit is contained in:
parent
6182e1ec73
commit
86fbe53e70
@ -6,7 +6,7 @@ if(WIN32)
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
add_compile_options(/Wall /wd4201 /wd4242 /wd4710 /wd4711 /wd4820)
|
||||
add_compile_options(/Wall /wd4127 /wd4201 /wd4242 /wd4710 /wd4711 /wd4820)
|
||||
else()
|
||||
add_compile_options(-Wall)
|
||||
endif()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user