Fixed warnings

release/4.3a0
Richard Roberts 2012-07-05 14:04:46 +00:00
parent 9e8f3defee
commit 1ee7162383
2 changed files with 1 additions and 1 deletions

View File

@ -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";

View File

@ -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