diff options
author | Shauren <shauren.trinity@gmail.com> | 2015-07-21 00:33:36 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2015-07-21 00:33:36 +0200 |
commit | a22e4e121a1e54b2f4154d59623ee4a94a449176 (patch) | |
tree | d4fb01e9f32e3f146062f47638cb1e664568c0de /cmake/compiler | |
parent | 5987391073b0a7a257658ecef51f1df4f0f38842 (diff) |
Core/Misc: Fixing warnings detected by Visual Studio 2015 compiler
Diffstat (limited to 'cmake/compiler')
-rw-r--r-- | cmake/compiler/msvc/settings.cmake | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cmake/compiler/msvc/settings.cmake b/cmake/compiler/msvc/settings.cmake index 0416ff6fc7f..6407b6cd5c4 100644 --- a/cmake/compiler/msvc/settings.cmake +++ b/cmake/compiler/msvc/settings.cmake @@ -51,8 +51,10 @@ message(STATUS "MSVC: Disabled NON-SECURE warnings") add_definitions(-D_CRT_NONSTDC_NO_WARNINGS) message(STATUS "MSVC: Disabled POSIX warnings") -# Ignore C4351: new behavior: elements of array 'x' will be default initialized -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4351") +# Ignore specific warnings +# C4351: new behavior: elements of array 'x' will be default initialized +# C4091: 'typedef ': ignored on left of '' when no variable is declared +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4351 /wd4091") if(NOT WITH_WARNINGS) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4996 /wd4355 /wd4244 /wd4985 /wd4267 /wd4619 /wd4512") |