[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Compilation warning, easy fix?
From: |
Rik |
Subject: |
Compilation warning, easy fix? |
Date: |
Fri, 08 Mar 2013 13:34:50 -0800 |
3/8/13
John,
When compiling I get this warning,
interp-core/mex.cc:2953: warning: ‘void unwind_protect::add(void
(*)(void*), void*)’ is deprecated (declared at interp-core/unwind-prot.h:51)
Would it be easy to replace line 2953 with the correct, undeprecated call?
The line in question is
frame.add (mex::cleanup, static_cast<void *> (&context));
and the prototype for the deprecated function is
void add (void (*fcn) (void *), void *ptr = 0) GCC_ATTR_DEPRECATED
{
add (new fcn_arg_elem<void *> (fcn, ptr));
}
It would appear to be as simple as substituting the body of the deprecated
function into mex.cc, but I haven't looked into the unwind_protect class.
--Rik
- Compilation warning, easy fix?,
Rik <=