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:
William S Fulton 2007-07-19 21:51:30 +00:00
commit bd0463087c

View file

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