]> git.sesse.net Git - casparcg/commitdiff
Fix compilation in VS2015 version 14.0.24720.00 Update 1
authordrakmor <i@drakmor.ru>
Mon, 29 Feb 2016 23:23:05 +0000 (02:23 +0300)
committerdrakmor <i@drakmor.ru>
Mon, 29 Feb 2016 23:23:05 +0000 (02:23 +0300)
Issue #410

core/video_format.cpp
modules/image/producer/image_producer.cpp
unit-test/param_test.cpp

index 792afb4623aeef64da6c22a2003c4af858a1a2bd..eb9b4bcc38ab3a15737174fd9160fd51f0fc94a4 100644 (file)
@@ -26,7 +26,8 @@
 #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 } },
@@ -66,7 +67,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 92f805145d4d47f2d6146838a9d96447b23b1b55..fa72eccf4203a5f09641bda33c7011caca5ea875 100644 (file)
@@ -185,6 +185,8 @@ 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",
@@ -199,6 +201,7 @@ 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 76dcdea289acc059952bd0721ca5505df24c2699..d858c5f16b46d04e395c48f8b029cbe9e4fbfcef 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 {