use [[gnu::...]] attributes
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
static constexpr Domain mixer_domain("mixer");
|
||||
|
||||
gcc_pure
|
||||
[[gnu::pure]]
|
||||
static int
|
||||
output_mixer_get_volume(const AudioOutputControl &ao) noexcept
|
||||
{
|
||||
|
@@ -228,7 +228,7 @@ AlsaMixer::~AlsaMixer()
|
||||
snd_config_update_free_global();
|
||||
}
|
||||
|
||||
gcc_pure
|
||||
[[gnu::pure]]
|
||||
static snd_mixer_elem_t *
|
||||
alsa_mixer_lookup_elem(snd_mixer_t *handle,
|
||||
const char *name, unsigned idx) noexcept
|
||||
|
@@ -48,7 +48,7 @@ software_mixer_init([[maybe_unused]] EventLoop &event_loop,
|
||||
return new SoftwareMixer(listener);
|
||||
}
|
||||
|
||||
gcc_const
|
||||
[[gnu::const]]
|
||||
static unsigned
|
||||
PercentVolumeToSoftwareVolume(unsigned volume) noexcept
|
||||
{
|
||||
|
Reference in New Issue
Block a user