mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-05 16:39:08 +01:00
CMake: disable unscoped enum type warning C26812 for msvc compilers
This commit is contained in:
@@ -105,8 +105,9 @@ message(STATUS "MSVC: Disabled POSIX warnings")
|
||||
# Ignore specific 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
|
||||
/wd4351 # C4351: new behavior: elements of array 'x' will be default initialized
|
||||
/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
|
||||
|
||||
Reference in New Issue
Block a user