From 5c55ec2f9bd972510454a04ccb40238f4cd0219c Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 9 May 2022 07:47:43 -0700 Subject: More agressively hide PipeWire and SDL header warnings --- examples/alffplay.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples') diff --git a/examples/alffplay.cpp b/examples/alffplay.cpp index fef83707..177d508a 100644 --- a/examples/alffplay.cpp +++ b/examples/alffplay.cpp @@ -28,12 +28,12 @@ #include #include -extern "C" { #ifdef __GNUC__ _Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wconversion\"") _Pragma("GCC diagnostic ignored \"-Wold-style-cast\"") #endif +extern "C" { #include "libavcodec/avcodec.h" #include "libavformat/avformat.h" #include "libavformat/avio.h" @@ -55,12 +55,12 @@ constexpr auto AVNoPtsValue = AV_NOPTS_VALUE; constexpr auto AVErrorEOF = AVERROR_EOF; struct SwsContext; -#ifdef __GNUC__ -_Pragma("GCC diagnostic pop") -#endif } #include "SDL.h" +#ifdef __GNUC__ +_Pragma("GCC diagnostic pop") +#endif #include "AL/alc.h" #include "AL/al.h" -- cgit v1.2.3