Merge pull request #12407 from lioncash/unused2
CPUThreadConfigCallback: Mark static ID as [[maybe_unused]]
This commit is contained in:
commit
7b57a4a37d
|
@ -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