Move disabled warning to CMakeLists.txt
parent
84e27140e8
commit
08c74687cb
|
@ -38,8 +38,9 @@ else()
|
|||
# Disabled warnings
|
||||
# C4244: implicit type conversion to a smaller type
|
||||
# C4503: type truncation
|
||||
# C4786: long names in templates
|
||||
# C4800: forcing value to bool
|
||||
add_compile_options("/wd4244" "/wd4503" "/wd4800")
|
||||
add_compile_options("/wd4244" "/wd4503" "/wd4786" "/wd4800")
|
||||
endif()
|
||||
|
||||
if(UNIX AND (NOT APPLE) AND (NOT CYGWIN))
|
||||
|
|
|
@ -14,10 +14,6 @@
|
|||
|
||||
#define BROKEN_FRIEND_TEMPLATES
|
||||
|
||||
#if _MSC_VER >= 1000
|
||||
// Make VC shut up about long variable names from templates
|
||||
#pragma warning(disable : 4786)
|
||||
#endif // _MSC_VER
|
||||
|
||||
#endif // _MSC_VER
|
||||
|
||||
|
|
Loading…
Reference in New Issue