# HG changeset patch # User John W. Eaton # Date 1362779848 18000 # Node ID 054d9e8f99b687199cfd60aa33eca2ae4ac48b4c # Parent 40cf0a292b20dfbec197f25c71f4f4bc90ccafc9 avoid deprecated function * mex.cc (call_mex): Use unwind_protect::add_fcn instead of the deprecated unwind_protect::add. diff --git a/libinterp/interp-core/mex.cc b/libinterp/interp-core/mex.cc --- a/libinterp/interp-core/mex.cc +++ b/libinterp/interp-core/mex.cc @@ -2950,7 +2950,7 @@ mex context (curr_mex_fcn); - frame.add (mex::cleanup, static_cast (&context)); + frame.add_fcn (mex::cleanup, static_cast (&context)); for (int i = 0; i < nargin; i++) argin[i] = context.make_value (args(i));