output/openal: disable -Wdeprecated-declarations on Apple

This commit is contained in:
Max Kellermann 2020-05-28 13:22:33 +02:00
parent ae7d550a01
commit 2c084781b0

View File

@ -29,6 +29,9 @@
#else #else
#include <OpenAL/al.h> #include <OpenAL/al.h>
#include <OpenAL/alc.h> #include <OpenAL/alc.h>
/* 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 #endif
class OpenALOutput final : AudioOutput { class OpenALOutput final : AudioOutput {