diff --git a/wrap/Class.cpp b/wrap/Class.cpp index da1510d29..0485de5bd 100644 --- a/wrap/Class.cpp +++ b/wrap/Class.cpp @@ -58,7 +58,6 @@ void Class::matlab_proxy(const string& classFile, const string& wrapperName, Fil proxyFile.oss << " function obj = " << matlabName << "(varargin)" << endl; // Special pointer constructor { - const int id = functionNames.size(); proxyFile.oss << " if nargin == 2 && isa(varargin{1}, 'uint64') && "; proxyFile.oss << "varargin{1} == uint64(" << ptr_constructor_key << ")\n"; proxyFile.oss << " obj.self = varargin{2};\n"; diff --git a/wrap/matlab.h b/wrap/matlab.h index dc13eafad..31778cdbd 100644 --- a/wrap/matlab.h +++ b/wrap/matlab.h @@ -121,6 +121,7 @@ void checkArguments(const string& name, int nargout, int nargin, int expected) { template mxArray* wrap(Class& value) { error("wrap internal error: attempted wrap of invalid type"); + return 0; } // specialization to string