Skip to content

Commit 9d2aba8

Browse files
committed
fix several compiler warnings
1 parent b91410a commit 9d2aba8

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/panel/widgets/menu.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,6 @@ bool WayfireMenu::update_icon()
230230
{
231231
std::string icon;
232232
int size = menu_size / LAUNCHERS_ICON_SCALE;
233-
bool error = false;
234-
235233
if (((std::string) menu_icon).empty())
236234
{
237235
icon = default_icon;

src/util/gtk-utils.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ Glib::RefPtr<Gdk::Pixbuf> load_icon_pixbuf_safe(std::string icon_path, int size)
1010
{
1111
auto pb = Gdk::Pixbuf::create_from_file(icon_path, size, size);
1212
return pb;
13-
}
14-
catch(Glib::FileError)
13+
}
14+
catch(Glib::FileError&)
1515
{
1616
std::cerr << "Error loading file: " << icon_path << std::endl;
1717
return {};
1818
}
19-
catch(Gdk::PixbufError)
19+
catch(Gdk::PixbufError&)
2020
{
2121
std::cerr << "Pixbuf error: " << icon_path << std::endl;
2222
return {};

0 commit comments

Comments
 (0)