Fixed warnings
parent
9e8f3defee
commit
1ee7162383
|
@ -58,7 +58,6 @@ void Class::matlab_proxy(const string& classFile, const string& wrapperName, Fil
|
||||||
proxyFile.oss << " function obj = " << matlabName << "(varargin)" << endl;
|
proxyFile.oss << " function obj = " << matlabName << "(varargin)" << endl;
|
||||||
// Special pointer constructor
|
// Special pointer constructor
|
||||||
{
|
{
|
||||||
const int id = functionNames.size();
|
|
||||||
proxyFile.oss << " if nargin == 2 && isa(varargin{1}, 'uint64') && ";
|
proxyFile.oss << " if nargin == 2 && isa(varargin{1}, 'uint64') && ";
|
||||||
proxyFile.oss << "varargin{1} == uint64(" << ptr_constructor_key << ")\n";
|
proxyFile.oss << "varargin{1} == uint64(" << ptr_constructor_key << ")\n";
|
||||||
proxyFile.oss << " obj.self = varargin{2};\n";
|
proxyFile.oss << " obj.self = varargin{2};\n";
|
||||||
|
|
|
@ -121,6 +121,7 @@ void checkArguments(const string& name, int nargout, int nargin, int expected) {
|
||||||
template <typename Class>
|
template <typename Class>
|
||||||
mxArray* wrap(Class& value) {
|
mxArray* wrap(Class& value) {
|
||||||
error("wrap internal error: attempted wrap of invalid type");
|
error("wrap internal error: attempted wrap of invalid type");
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// specialization to string
|
// specialization to string
|
||||||
|
|
Loading…
Reference in New Issue