Fix unused variables found by Coverity checker
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13892 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e475ce1d6b
commit
e87e94572e
2 changed files with 1 additions and 5 deletions
|
|
@ -1004,7 +1004,6 @@ static String *resolve_create_node_scope(String *cname) {
|
||||||
} else {
|
} else {
|
||||||
/* now this last part is a class */
|
/* now this last part is a class */
|
||||||
si = Next(si);
|
si = Next(si);
|
||||||
ns1 = Swig_symbol_clookup(sname,0);
|
|
||||||
/* or a nested class tree, which is unrolled here */
|
/* or a nested class tree, which is unrolled here */
|
||||||
for (; si.item; si = Next(si)) {
|
for (; si.item; si = Next(si)) {
|
||||||
if (si.item) {
|
if (si.item) {
|
||||||
|
|
|
||||||
|
|
@ -1213,13 +1213,10 @@ static DOH *Preprocessor_replace(DOH *s) {
|
||||||
Replaceall(fn, "\\", "\\\\");
|
Replaceall(fn, "\\", "\\\\");
|
||||||
Printf(ns, "\"%s\"", fn);
|
Printf(ns, "\"%s\"", fn);
|
||||||
Delete(fn);
|
Delete(fn);
|
||||||
} else if ((m = Getattr(symbols, id))) {
|
} else if (Getattr(symbols, id)) {
|
||||||
DOH *e;
|
DOH *e;
|
||||||
/* Yes. There is a macro here */
|
/* Yes. There is a macro here */
|
||||||
/* See if the macro expects arguments */
|
/* See if the macro expects arguments */
|
||||||
/* if (Getattr(m,"args")) {
|
|
||||||
Swig_error(Getfile(id),Getline(id),"Macro arguments expected.\n");
|
|
||||||
} */
|
|
||||||
e = expand_macro(id, 0, s);
|
e = expand_macro(id, 0, s);
|
||||||
if (e)
|
if (e)
|
||||||
Append(ns, e);
|
Append(ns, e);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue