Move disabled warning to CMakeLists.txt

pull/3/head
Hleb Valoshka 2019-02-05 15:31:07 +03:00
parent 84e27140e8
commit 08c74687cb
2 changed files with 2 additions and 5 deletions

View File

@ -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))

View File

@ -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