summaryrefslogtreecommitdiff
path: root/gtk2_ardour/plugin_selector.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-01-26 15:14:55 +0100
committerRobin Gareus <robin@gareus.org>2016-01-26 15:14:55 +0100
commitd1c35636f0f4fa59659d5e64c4e36d6eb24671e0 (patch)
tree1ccb0bbe98e3ce1c384cb152125a41b445ce16e3 /gtk2_ardour/plugin_selector.cc
parentbfbf260eaf26b1e977f4aa8705ecb3097c2726cd (diff)
satisfy some pedantic compilers, #6748
Diffstat (limited to 'gtk2_ardour/plugin_selector.cc')
-rw-r--r--gtk2_ardour/plugin_selector.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/gtk2_ardour/plugin_selector.cc b/gtk2_ardour/plugin_selector.cc
index d518df59f6..144e17d830 100644
--- a/gtk2_ardour/plugin_selector.cc
+++ b/gtk2_ardour/plugin_selector.cc
@@ -962,6 +962,12 @@ static Gtkmm2ext::ActiveState next_state (Gtkmm2ext::ActiveState s){
break;
default: assert(0); break; // not reached
}
+ /* impossible, but keep some compiles happy */
+ fatal << string_compose (_("programming error: %1"),
+ X_("Illegal Active State."))
+ << endmsg;
+ abort(); /*NOTREACHED*/
+ return Gtkmm2ext::Off;
}
static Gtkmm2ext::ActiveState prev_state (Gtkmm2ext::ActiveState s){
@@ -977,6 +983,12 @@ static Gtkmm2ext::ActiveState prev_state (Gtkmm2ext::ActiveState s){
break;
default: assert(0); break; // not reached
}
+ /* impossible, but keep some compiles happy */
+ fatal << string_compose (_("programming error: %1"),
+ X_("Illegal Active State."))
+ << endmsg;
+ abort(); /*NOTREACHED*/
+ return Gtkmm2ext::Off;
}
bool