]> git.sesse.net Git - casparcg/commitdiff
Move fix issue #410 to VS include file.
authordrakmor <i@drakmor.ru>
Tue, 1 Mar 2016 12:33:12 +0000 (15:33 +0300)
committerdrakmor <i@drakmor.ru>
Tue, 1 Mar 2016 12:33:12 +0000 (15:33 +0300)
common/compiler/vs/disable_silly_warnings.h
core/video_format.cpp
modules/image/producer/image_producer.cpp
unit-test/param_test.cpp

index 0866ef7a353f4ead2efcf1c3912dbe2cc70af571..8996c740ed83be7769da542753021be1639e63ff 100644 (file)
 #pragma warning (disable : 4505) // unreferenced local function has been 
 #pragma warning (disable : 4481) // nonstandard extension used: override specifier 'override'
 #pragma warning (disable : 4996) // function call with parameters that may be unsafe
+
+#if (_MSC_VER > 1800 && _MSC_FULL_VER >= 190023506)
+       #pragma warning( disable : 4592) // symbol will be dynamically initialized (implementation limitation). Bug in VS2015 14.0.24720.00 Update 1
+#endif
+
 #endif
 
index eb9b4bcc38ab3a15737174fd9160fd51f0fc94a4..792afb4623aeef64da6c22a2003c4af858a1a2bd 100644 (file)
@@ -26,8 +26,7 @@
 #include <boost/algorithm/string.hpp>
 
 namespace caspar { namespace core {
-#pragma warning( push ) 
-#pragma warning( disable : 4592)       
+       
        const std::vector<video_format_desc> format_descs = {
                { video_format::pal,          720,  576,  1024, 576,  field_mode::upper,       25,    1,    L"PAL",          { 1920                         } },
                { video_format::ntsc,         720,  486,  720,  540,  field_mode::lower,       30000, 1001, L"NTSC",         { 1602, 1601, 1602, 1601, 1602 } },
@@ -67,7 +66,7 @@ namespace caspar { namespace core {
                { video_format::dci2160p2500, 4096, 2160, 4096, 2160, field_mode::progressive, 25,    1,    L"dci2160p2500", { 1920                         } },
                { video_format::invalid,      0,    0,    0,    0,    field_mode::progressive, 1,     1,    L"invalid",      { 1                            } }
        };
-#pragma warning( pop ) 
+
 video_format_desc::video_format_desc(
                video_format format,
                int width,
index fa72eccf4203a5f09641bda33c7011caca5ea875..92f805145d4d47f2d6146838a9d96447b23b1b55 100644 (file)
@@ -185,8 +185,6 @@ void describe_producer(core::help_sink& sink, const core::help_repository& repo)
        sink.example(L">> PLAY 1-10 [PNG_BASE64] data...", L"Plays a PNG image transferred as a base64 encoded string.");
 }
 
-#pragma warning( push ) 
-#pragma warning( disable : 4592)
 static const auto g_extensions = {
        L".png",
        L".tga",
@@ -201,7 +199,6 @@ static const auto g_extensions = {
        L".j2k",
        L".j2c"
 };
-#pragma warning( pop )
 
 spl::shared_ptr<core::frame_producer> create_producer(const core::frame_producer_dependencies& dependencies, const std::vector<std::wstring>& params)
 {
index d858c5f16b46d04e395c48f8b029cbe9e4fbfcef..76dcdea289acc059952bd0721ca5505df24c2699 100644 (file)
 #include <common/param.h>
 
 namespace {
-#pragma warning( push ) 
-#pragma warning( disable : 4592)
        static auto params = {
                L"param1", L"1",
                L"param2", L"string value" };
-#pragma warning( pop ) 
 }
 
 namespace caspar {