From 8ad27cc777910f64cd96bbc6022ec3842b75dfba Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 20 Jan 2014 10:52:59 -0500 Subject: [PATCH] prevent a compiler warning --- gtk2_ardour/streamview.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gtk2_ardour/streamview.cc b/gtk2_ardour/streamview.cc index bed80582b2..404b934562 100644 --- a/gtk2_ardour/streamview.cc +++ b/gtk2_ardour/streamview.cc @@ -45,6 +45,8 @@ #include "gui_thread.h" #include "utils.h" +#include "i18n.h" + using namespace std; using namespace ARDOUR; using namespace PBD; @@ -419,6 +421,11 @@ StreamView::update_rec_box () xstart = _trackview.editor().sample_to_pixel (_trackview.track()->current_capture_start()); xend = _trackview.editor().sample_to_pixel (at); break; + + default: + fatal << string_compose (_("programming error: %1"), "illegal track mode") << endmsg; + /*NOTREACHED*/ + return; } rect.rectangle->set_x0 (xstart);