[project @ 2006-10-18 23:30:22 by jwe]
author |
jwe |
date |
Wed, 18 Oct 2006 23:30:22 +0000 |
parents |
c968f4198067 |
children |
8010902404b9 |
files |
src/ChangeLog src/mex.cc |
diffstat |
2 files changed, 4 insertions(+), 3 deletions(-)
[+]
|
line diff
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
2006-10-18 John W. Eaton <jwe@octave.org>
+ * 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.
--- a/src/mex.cc
+++ b/src/mex.cc
@@ -3204,9 +3204,7 @@
std::map<std::string,int>::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];