From fd3710d869435d7bdf032e08084186cdbe135e3e Mon Sep 17 00:00:00 2001 From: Brenno Lemos Date: Sun, 15 Oct 2023 17:49:45 -0300 Subject: [PATCH] chore: suppress compiler warning --- src/modules/backlight.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/backlight.cpp b/src/modules/backlight.cpp index 759bbd13..4ae511eb 100644 --- a/src/modules/backlight.cpp +++ b/src/modules/backlight.cpp @@ -83,7 +83,9 @@ bool waybar::modules::Backlight::handleScroll(GdkEventScroll *e) { // Check scroll direction auto dir = AModule::getScrollDir(e); - util::ChangeType ct; + // No worries, it will always be set because of the switch below. This is purely to suppress a + // warning + util::ChangeType ct = util::ChangeType::Increase; switch (dir) { case SCROLL_DIR::UP: