diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-06-26 07:48:47 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-06-26 08:29:31 +0200 |
commit | 05bd50a1cf38daf744864828c39c20d064cac4e7 (patch) | |
tree | f91a89c1da9fd1857649ac00aa5aaded39f1c2a1 | |
parent | vk_buffer_cache: Silence implicit cast warnings (diff) | |
download | yuzu-05bd50a1cf38daf744864828c39c20d064cac4e7.tar yuzu-05bd50a1cf38daf744864828c39c20d064cac4e7.tar.gz yuzu-05bd50a1cf38daf744864828c39c20d064cac4e7.tar.bz2 yuzu-05bd50a1cf38daf744864828c39c20d064cac4e7.tar.lz yuzu-05bd50a1cf38daf744864828c39c20d064cac4e7.tar.xz yuzu-05bd50a1cf38daf744864828c39c20d064cac4e7.tar.zst yuzu-05bd50a1cf38daf744864828c39c20d064cac4e7.zip |
-rw-r--r-- | src/video_core/command_classes/codecs/codec.h | 8 | ||||
-rw-r--r-- | src/video_core/command_classes/vic.cpp | 25 |
2 files changed, 29 insertions, 4 deletions
diff --git a/src/video_core/command_classes/codecs/codec.h b/src/video_core/command_classes/codecs/codec.h index 8a2a6c360..3e135a2a6 100644 --- a/src/video_core/command_classes/codecs/codec.h +++ b/src/video_core/command_classes/codecs/codec.h @@ -14,10 +14,18 @@ extern "C" { #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif +#ifdef _MSC_VER +#pragma warning(push) +#pragma warning(disable : 4242) // conversion from 'type' to 'type', possible loss of data +#pragma warning(disable : 4244) // conversion from 'type' to 'type', possible loss of data +#endif #include <libavcodec/avcodec.h> #if defined(__GNUC__) || defined(__clang__) #pragma GCC diagnostic pop #endif +#ifdef _MSC_VER +#pragma warning(pop) +#endif } namespace Tegra { diff --git a/src/video_core/command_classes/vic.cpp b/src/video_core/command_classes/vic.cpp index 0a8b82f2b..5faf8c0f1 100644 --- a/src/video_core/command_classes/vic.cpp +++ b/src/video_core/command_classes/vic.cpp @@ -3,7 +3,28 @@ // Refer to the license.txt file included. #include <array> + +extern "C" { +#if defined(__GNUC__) || defined(__clang__) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wconversion" +#endif +#ifdef _MSC_VER +#pragma warning(disable : 4244) // conversion from 'type' to 'type', possible loss of data +#pragma warning(push) +#endif +#include <libswscale/swscale.h> +#if defined(__GNUC__) || defined(__clang__) +#pragma GCC diagnostic pop +#endif +#ifdef _MSC_VER +#pragma warning(pop) +#endif +} + #include "common/assert.h" +#include "common/logging/log.h" + #include "video_core/command_classes/nvdec.h" #include "video_core/command_classes/vic.h" #include "video_core/engines/maxwell_3d.h" @@ -11,10 +32,6 @@ #include "video_core/memory_manager.h" #include "video_core/textures/decoders.h" -extern "C" { -#include <libswscale/swscale.h> -} - namespace Tegra { Vic::Vic(GPU& gpu_, std::shared_ptr<Nvdec> nvdec_processor_) |