# HG changeset patch # User jwe # Date 1161214222 0 # Node ID a813714cb04b9f0c9c4beb96e7bdbf2f93d67e1f # Parent c968f419806741bda57107cec989b3b06bcaeae9 [project @ 2006-10-18 23:30:22 by jwe] diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2006-10-18 John W. Eaton + * mex.cc (mexUnlock): Don't warn if unlocking a function that is + not locked. + * pt-fcn-handle.cc (tree_anon_fcn_handle::dup): Correctly duplicate symbol table info. diff --git a/src/mex.cc b/src/mex.cc --- a/src/mex.cc +++ b/src/mex.cc @@ -3204,9 +3204,7 @@ std::map::iterator p = mex_lock_count.find (fname); - if (p == mex_lock_count.end ()) - warning ("mexUnlock: funtion `%s' is not locked", fname); - else + if (p != mex_lock_count.end ()) { int count = --mex_lock_count[fname];