output/Registry: add `noexcept`

This commit is contained in:
Max Kellermann 2023-03-07 11:57:39 +01:00
parent b18ef61361
commit 333b36f090
2 changed files with 3 additions and 2 deletions

View File

@ -94,7 +94,7 @@ constexpr const AudioOutputPlugin *audio_output_plugins[] = {
};
const AudioOutputPlugin *
GetAudioOutputPluginByName(const char *name)
GetAudioOutputPluginByName(const char *name) noexcept
{
audio_output_plugins_for_each(plugin)
if (StringIsEqual(plugin->name, name))

View File

@ -8,8 +8,9 @@ struct AudioOutputPlugin;
extern const AudioOutputPlugin *const audio_output_plugins[];
[[gnu::pure]]
const AudioOutputPlugin *
GetAudioOutputPluginByName(const char *name);
GetAudioOutputPluginByName(const char *name) noexcept;
#define audio_output_plugins_for_each(plugin) \
for (const AudioOutputPlugin *plugin, \