CMake: disable unscoped enum type warning C26812 for msvc compilers

This commit is contained in:
Ovahlord committed 2022-02-21 10:36:36 +01:00
1 parent 06f6987e2a
commit 33bc96fcce
1 file changed
+2 -1
+2 -1
View File
@@ -106,7 +106,8 @@ message(STATUS "MSVC: Disabled POSIX warnings")
target_compile_options(trinity-compile-option-interface
INTERFACE
/wd4351 # C4351: new behavior: elements of array 'x' will be default initialized
/wd4091) # C4091: 'typedef ': ignored on left of '' when no variable is declared
/wd4091 # C4091: 'typedef ': ignored on left of '' when no variable is declared
/wd26812) # C26812: The enum type 'type-name' is unscoped. Prefer enum class over enum
if(NOT WITH_WARNINGS)
target_compile_options(trinity-compile-option-interface