forte warning fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5663 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
208386909b
commit
643da18a02
2 changed files with 6 additions and 8 deletions
|
|
@ -1090,10 +1090,8 @@ public:
|
||||||
int is_reference = SwigType_isreference_return(decl);
|
int is_reference = SwigType_isreference_return(decl);
|
||||||
if (is_pointer || is_reference) {
|
if (is_pointer || is_reference) {
|
||||||
String *type = Getattr(n, "type");
|
String *type = Getattr(n, "type");
|
||||||
//Node *classNode = Swig_methodclass(n);
|
Node *modname = Getattr(parent, "module");
|
||||||
//Node *module = Getattr(classNode, "module");
|
Node *target = Swig_directormap(modname, type);
|
||||||
Node *module = Getattr(parent, "module");
|
|
||||||
Node *target = Swig_directormap(module, type);
|
|
||||||
if (target) unwrap = true;
|
if (target) unwrap = true;
|
||||||
}
|
}
|
||||||
if (unwrap) {
|
if (unwrap) {
|
||||||
|
|
@ -2132,8 +2130,8 @@ public:
|
||||||
* to SWIGTYPE) called DIRECTORTYPE?
|
* to SWIGTYPE) called DIRECTORTYPE?
|
||||||
*/
|
*/
|
||||||
if (SwigType_ispointer(parameterType) || SwigType_isreference(parameterType)) {
|
if (SwigType_ispointer(parameterType) || SwigType_isreference(parameterType)) {
|
||||||
Node *module = Getattr(parent, "module");
|
Node *modname = Getattr(parent, "module");
|
||||||
Node *target = Swig_directormap(module, parameterType);
|
Node *target = Swig_directormap(modname, parameterType);
|
||||||
sprintf(source, "obj%d", idx++);
|
sprintf(source, "obj%d", idx++);
|
||||||
String *nonconst = 0;
|
String *nonconst = 0;
|
||||||
/* strip pointer/reference --- should move to Swig/stype.c */
|
/* strip pointer/reference --- should move to Swig/stype.c */
|
||||||
|
|
|
||||||
|
|
@ -1029,7 +1029,7 @@ Swig_symbol_remove(Node *n) {
|
||||||
Delattr(n,"sym:overloaded");
|
Delattr(n,"sym:overloaded");
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
#if 0
|
||||||
symtab = Getattr(n,"sym:symtab"); /* Get symbol table object */
|
symtab = Getattr(n,"sym:symtab"); /* Get symbol table object */
|
||||||
symtab = Getattr(symtab,"csymtab"); /* Get actual hash table of symbols */
|
symtab = Getattr(symtab,"csymtab"); /* Get actual hash table of symbols */
|
||||||
symprev = Getattr(n,"csym:previousSibling");
|
symprev = Getattr(n,"csym:previousSibling");
|
||||||
|
|
@ -1054,7 +1054,7 @@ Swig_symbol_remove(Node *n) {
|
||||||
Delattr(n,"sym:symtab");
|
Delattr(n,"sym:symtab");
|
||||||
Delattr(n,"csym:previousSibling");
|
Delattr(n,"csym:previousSibling");
|
||||||
Delattr(n,"csym:nextSibling");
|
Delattr(n,"csym:nextSibling");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue