diff options
author | Robin Gareus <robin@gareus.org> | 2019-09-18 05:57:26 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-09-18 05:57:26 +0200 |
commit | 52021bc3ca1fe176cc32a0fcbc37b375a49d2bfc (patch) | |
tree | 039d099ee0e41afe00e659406a0a619b0f9fd5eb /libs/surfaces | |
parent | 60bce78c7e06676917c52dc0e62c2d92169d391e (diff) |
Consistent use of abort() /* NOTREACHED */
This fixes some static analysis warnings:
PBD::fatal transmitter needs to be connected to a function
that aborts. This is usually the case with GUI
Diffstat (limited to 'libs/surfaces')
-rw-r--r-- | libs/surfaces/mackie/gui.cc | 2 | ||||
-rw-r--r-- | libs/surfaces/us2400/gui.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libs/surfaces/mackie/gui.cc b/libs/surfaces/mackie/gui.cc index 7209ef93f9..74e314b2e7 100644 --- a/libs/surfaces/mackie/gui.cc +++ b/libs/surfaces/mackie/gui.cc @@ -371,7 +371,7 @@ MackieControlProtocolGUI::device_dependent_widget () if (!surface) { PBD::fatal << string_compose (_("programming error: %1\n"), string_compose ("n=%1 surface not found!", n)) << endmsg; - /*NOTREACHED*/ + abort (); /*NOTREACHED*/ } Gtk::ComboBox* input_combo = manage (new Gtk::ComboBox); diff --git a/libs/surfaces/us2400/gui.cc b/libs/surfaces/us2400/gui.cc index 3ef7923286..6fe51c9988 100644 --- a/libs/surfaces/us2400/gui.cc +++ b/libs/surfaces/us2400/gui.cc @@ -275,7 +275,7 @@ US2400ProtocolGUI::device_dependent_widget () if (!surface) { PBD::fatal << string_compose (_("programming error: %1\n"), string_compose ("n=%1 surface not found!", n)) << endmsg; - /*NOTREACHED*/ + abort (); /*NOTREACHED*/ } Gtk::ComboBox* input_combo = manage (new Gtk::ComboBox); |