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:
Robin Gareus 2019-09-18 05:57:26 +02:00
parent 60bce78c7e
commit 52021bc3ca
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
7 changed files with 8 additions and 9 deletions

View file

@ -87,8 +87,7 @@ PBD::new_debug_bit (const char* name)
if (_debug_bit >= debug_bits.size()) {
cerr << "Too many debug bits defined, offender was " << name << endl;
abort ();
/*NOTREACHED*/
abort (); /*NOTREACHED*/
}
ret.set (_debug_bit++, 1);