minor bug fix in cpperraswarn pragma and now we error out if SWIG pragma is not recognised
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9871 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
fea8b1cf44
commit
bd0463087c
1 changed files with 4 additions and 2 deletions
|
|
@ -1639,9 +1639,11 @@ String *Preprocessor_parse(String *s) {
|
|||
Swig_warnfilter(nowarn, 1);
|
||||
Delete(nowarn);
|
||||
Delete(val);
|
||||
} else if (strncmp(c, "cpperraswarn=", 7) == 0) {
|
||||
} else if (strncmp(c, "cpperraswarn=", 13) == 0) {
|
||||
error_as_warning = atoi(c + 13);
|
||||
}
|
||||
} else {
|
||||
Swig_error(Getfile(s), Getline(id), "Unknown SWIG pragma: %s\n", c);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (Equal(id, kpp_level)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue