From 6d65cc48d789ef7d44ea843b82fdbd3e4252d616 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 5 Mar 2021 16:37:49 +0100 Subject: [PATCH] output/wasapi: use [[gnu::pure]] --- .../plugins/wasapi/WasapiOutputPlugin.hxx | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/output/plugins/wasapi/WasapiOutputPlugin.hxx b/src/output/plugins/wasapi/WasapiOutputPlugin.hxx index eaf063e3b..77545c699 100644 --- a/src/output/plugins/wasapi/WasapiOutputPlugin.hxx +++ b/src/output/plugins/wasapi/WasapiOutputPlugin.hxx @@ -21,7 +21,6 @@ #define MPD_WASAPI_OUTPUT_PLUGIN_HXX #include "output/OutputAPI.hxx" -#include "util/Compiler.h" #include #include @@ -30,12 +29,20 @@ extern const struct AudioOutputPlugin wasapi_output_plugin; class WasapiOutput; -gcc_pure WasapiOutput &wasapi_output_downcast(AudioOutput &output) noexcept; +[[gnu::pure]] +WasapiOutput & +wasapi_output_downcast(AudioOutput &output) noexcept; -gcc_pure bool wasapi_is_exclusive(WasapiOutput &output) noexcept; +[[gnu::pure]] +bool +wasapi_is_exclusive(WasapiOutput &output) noexcept; -gcc_pure IMMDevice *wasapi_output_get_device(WasapiOutput &output) noexcept; +[[gnu::pure]] +IMMDevice * +wasapi_output_get_device(WasapiOutput &output) noexcept; -gcc_pure IAudioClient *wasapi_output_get_client(WasapiOutput &output) noexcept; +[[gnu::pure]] +IAudioClient * +wasapi_output_get_client(WasapiOutput &output) noexcept; #endif