Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix: add default return in Widget::getStatusIconPath to fix warning
Browse files Browse the repository at this point in the history
Fixes warning produced with `-Werror=return-type` on GCC 5.4.0.
  • Loading branch information
zetok committed Nov 11, 2017
1 parent 76d4dd3 commit 8a9c34d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/widget/widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2191,7 +2191,9 @@ QString Widget::getStatusIconPath(Status status)
case Status::Offline:
return ":/img/status/dot_offline.svg";
}
qWarning() << "Status unknown";
assert(false);
return QString{};
}

// Preparing needed to set correct size of icons for GTK tray backend
Expand Down

0 comments on commit 8a9c34d

Please sign in to comment.