diff options
author | Chris Robinson <[email protected]> | 2022-05-09 07:47:43 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-05-09 07:47:43 -0700 |
commit | 5c55ec2f9bd972510454a04ccb40238f4cd0219c (patch) | |
tree | d65eb2a0bc48cc30d5466eb8ce6624a5791126d5 /examples/alffplay.cpp | |
parent | 2c9da1b671d5515de1116b5a1d389dc83c2bc33d (diff) |
More agressively hide PipeWire and SDL header warnings
Diffstat (limited to 'examples/alffplay.cpp')
-rw-r--r-- | examples/alffplay.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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 <mutex> #include <ratio> -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" |