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
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user