summaryrefslogtreecommitdiff
path: root/libs/ardour/source.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2010-06-29 20:40:52 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2010-06-29 20:40:52 +0000
commitdbf3ba2d73dfa2b3230ff5829e4a4a49c7c5ba5f (patch)
treed8511ecc93e977ca7afe03bd2a950add779f4aab /libs/ardour/source.cc
parent501db4747bd00a5f4ff8664a1375b93e3ea2c367 (diff)
allow zero-length SMF files on disk again; fix some gcc 4.X optimization-on compile warnings
git-svn-id: svn://localhost/ardour2/branches/3.0@7329 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/source.cc')
-rw-r--r--libs/ardour/source.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/source.cc b/libs/ardour/source.cc
index 894233f436..f819e6eb42 100644
--- a/libs/ardour/source.cc
+++ b/libs/ardour/source.cc
@@ -277,8 +277,8 @@ Source::dec_use_count ()
{
#ifndef NDEBUG
gint oldval = g_atomic_int_exchange_and_add (&_use_count, -1);
- cerr << "Bad use dec for " << name() << endl;
if (oldval <= 0) {
+ cerr << "Bad use dec for " << name() << endl;
abort ();
}
assert (oldval > 0);