13
0

nitpick for static analyzers and friends

This commit is contained in:
Robin Gareus 2016-03-02 04:17:01 +01:00
parent 208dec7231
commit c4f19a66d9

View File

@ -1010,6 +1010,11 @@ meter_render_metrics (Gtk::Widget& w, MeterType type, vector<DataType> types)
layout->set_text("mid");
layout->get_pixel_size(tw, th);
break;
default: // DataType::NIL;
layout->set_text("");
tw = th = 0;
assert (0); // not reached
break;
}
if (!background) {
c = w.get_style()->get_fg (Gtk::STATE_ACTIVE);