From 2c084781b04ed184941fa1b732d483ebca650a4d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 28 May 2020 13:22:33 +0200 Subject: [PATCH] output/openal: disable -Wdeprecated-declarations on Apple --- src/output/plugins/OpenALOutputPlugin.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/output/plugins/OpenALOutputPlugin.cxx b/src/output/plugins/OpenALOutputPlugin.cxx index d832bae75..f68a8338b 100644 --- a/src/output/plugins/OpenALOutputPlugin.cxx +++ b/src/output/plugins/OpenALOutputPlugin.cxx @@ -29,6 +29,9 @@ #else #include #include +/* on macOS, OpenAL is deprecated, but since the user asked to enable + this plugin, let's ignore the compiler warnings */ +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" #endif class OpenALOutput final : AudioOutput {