diff --git a/aether/aether_app.cpp b/aether/aether_app.cpp index 35de67902..f9aa55ee3 100644 --- a/aether/aether_app.cpp +++ b/aether/aether_app.cpp @@ -75,7 +75,7 @@ void AetherAppContext::TelemetryInit() { } void AetherAppContext::TeleStatisticsInit( - TeleStatistics::ptr const& tele_statistics) const { + [[maybe_unused]] TeleStatistics::ptr const& tele_statistics) const { #if AE_TELE_ENABLED # if AE_TELE_LOG_TO_STATISTICS if (!tele_statistics_trap_is_set) { diff --git a/aether/aether_app.h b/aether/aether_app.h index add1a3789..f9830c2c9 100644 --- a/aether/aether_app.h +++ b/aether/aether_app.h @@ -203,7 +203,7 @@ class AetherAppContext { ComponentFactory client_prefab_; ComponentFactory tele_statistics_; - bool tele_statistics_trap_is_set{false}; + [[maybe_unused]] bool tele_statistics_trap_is_set{false}; void (*set_aether_to_env_)(Env* env, Aether::ptr const&); }; diff --git a/aether/events/details/event_multi_subscription.h b/aether/events/details/event_multi_subscription.h index 8c9a3992c..20f6ef3f8 100644 --- a/aether/events/details/event_multi_subscription.h +++ b/aether/events/details/event_multi_subscription.h @@ -113,7 +113,8 @@ class MultiSubscriptionObject { private: template - void SetEventSystem(RegHandler const& re, REs const&... res) { + void SetEventSystem(RegHandler const& re, + [[maybe_unused]] REs const&... res) { if (es_ == nullptr) { es_ = re.es; }