[warnings] suppress warnings

Some warnings can not be solved as they depend on external libraries or
limitations of the C standard.
Suppress these warnings selectively
This commit is contained in:
akallabeth
2024-08-30 15:29:27 +02:00
parent 36fbed25c9
commit 5887f8a558
5 changed files with 23 additions and 0 deletions

View File

@@ -162,7 +162,11 @@ static BOOL tsmf_ffmpeg_init_stream(ITSMFDecoder* decoder, const TS_AM_MEDIA_TYP
UINT32 size = 0;
const BYTE* s = NULL;
TSMFFFmpegDecoder* mdecoder = (TSMFFFmpegDecoder*)decoder;
WINPR_PRAGMA_DIAG_PUSH
WINPR_PRAGMA_DIAG_IGNORED_QUALIFIERS
mdecoder->codec = avcodec_find_decoder(mdecoder->codec_id);
WINPR_PRAGMA_DIAG_POP
if (!mdecoder->codec)
{