CPUThreadConfigCallback: Mark static ID as [[maybe_unused]]

This isn't used, but is likely kept around so the one-timed execution of
a magic static is taken advantage of.
This commit is contained in:
Lioncash 2023-12-12 17:30:34 -05:00
parent 53a51a6f1b
commit c14b3539c9
1 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,8 @@ namespace CPUThreadConfigCallback
{
ConfigChangedCallbackID AddConfigChangedCallback(Config::ConfigChangedCallback func)
{
static auto s_config_changed_callback_id = Config::AddConfigChangedCallback(&OnConfigChanged);
[[maybe_unused]] static auto s_config_changed_callback_id =
Config::AddConfigChangedCallback(&OnConfigChanged);
const ConfigChangedCallbackID callback_id{s_next_callback_id};
++s_next_callback_id;