summaryrefslogtreecommitdiff
path: root/libs/ardour/audiosource.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/ardour/audiosource.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/ardour/audiosource.cc')
-rw-r--r--libs/ardour/audiosource.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/audiosource.cc b/libs/ardour/audiosource.cc
index 43cbcb7464..cd061ef0ef 100644
--- a/libs/ardour/audiosource.cc
+++ b/libs/ardour/audiosource.cc
@@ -396,7 +396,7 @@ AudioSource::read_peaks_with_fpp (PeakData *peaks, samplecnt_t npeaks, samplepos
}
if (statbuf.st_size < expected_file_size) {
fatal << "peak file is still truncated after rebuild" << endmsg;
- /*NOTREACHED*/
+ abort (); /*NOTREACHED*/
}
}
}