summaryrefslogtreecommitdiff
path: root/libs/pbd/debug.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-09-18 05:57:26 +0200
committerRobin Gareus <robin@gareus.org>2019-09-18 05:57:26 +0200
commit52021bc3ca1fe176cc32a0fcbc37b375a49d2bfc (patch)
tree039d099ee0e41afe00e659406a0a619b0f9fd5eb /libs/pbd/debug.cc
parent60bce78c7e06676917c52dc0e62c2d92169d391e (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/pbd/debug.cc')
-rw-r--r--libs/pbd/debug.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/pbd/debug.cc b/libs/pbd/debug.cc
index 1c28b86b5d..39fa600899 100644
--- a/libs/pbd/debug.cc
+++ b/libs/pbd/debug.cc
@@ -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);