From d1c35636f0f4fa59659d5e64c4e36d6eb24671e0 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 26 Jan 2016 15:14:55 +0100 Subject: satisfy some pedantic compilers, #6748 --- gtk2_ardour/plugin_selector.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'gtk2_ardour/plugin_selector.cc') 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 -- cgit v1.2.3