From 329d8acca731b5bb86f977aeda1d96db3d3f274c Mon Sep 17 00:00:00 2001 From: Stenzek Date: Mon, 2 Oct 2023 02:06:22 +1000 Subject: [PATCH] GS/Capture: Mute deprecrated warnings At least while we're targeting multiple FFMpeg versions. --- pcsx2/GS/GSCapture.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pcsx2/GS/GSCapture.cpp b/pcsx2/GS/GSCapture.cpp index 38bcb3c5c0..bf318e7e4b 100644 --- a/pcsx2/GS/GSCapture.cpp +++ b/pcsx2/GS/GSCapture.cpp @@ -36,6 +36,11 @@ #include #include +#ifdef __clang__ +// We're using deprecated fields because we're targeting multiple ffmpeg versions. +#pragma clang diagnostic ignored "-Wdeprecated-declarations" +#endif + extern "C" { #include "libavcodec/avcodec.h" #include "libavcodec/version.h" @@ -50,8 +55,6 @@ extern "C" { #include "libswresample/version.h" } -#include - // Compatibility with both ffmpeg 4.x and 5.x. #if (LIBAVFORMAT_VERSION_MAJOR < 59) #define ff_const59