nitpick for static analyzers and friends
authorRobin Gareus <robin@gareus.org>
Wed, 2 Mar 2016 03:17:01 +0000 (04:17 +0100)
committerRobin Gareus <robin@gareus.org>
Wed, 2 Mar 2016 03:17:01 +0000 (04:17 +0100)
gtk2_ardour/meter_patterns.cc

index 1b582a96b065cdbaf9c09ff13ffee51641598b2c..f3f2073a457a27ed8ba24fcbee6f8aae167d49b9 100644 (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);