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:
parent
53a51a6f1b
commit
c14b3539c9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue