diff options
author | Robin Gareus <robin@gareus.org> | 2016-01-26 15:14:55 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-01-26 15:14:55 +0100 |
commit | d1c35636f0f4fa59659d5e64c4e36d6eb24671e0 (patch) | |
tree | 1ccb0bbe98e3ce1c384cb152125a41b445ce16e3 /gtk2_ardour/plugin_selector.cc | |
parent | bfbf260eaf26b1e977f4aa8705ecb3097c2726cd (diff) |
satisfy some pedantic compilers, #6748
Diffstat (limited to 'gtk2_ardour/plugin_selector.cc')
-rw-r--r-- | gtk2_ardour/plugin_selector.cc | 12 |
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 |