chore: suppress compiler warning

pull/2575/head
Brenno Lemos 2023-10-15 17:49:45 -03:00
parent 11d7ca1d73
commit fd3710d869
1 changed files with 3 additions and 1 deletions

View File

@ -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: