allow overide the warn codes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6429 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6cfa53e462
commit
4897829d0f
1 changed files with 3 additions and 2 deletions
|
|
@ -91,11 +91,12 @@ Swig_warning(int wnum, const String_or_char *filename, int line, const char *fmt
|
|||
if (filter) {
|
||||
char temp[32];
|
||||
char *c;
|
||||
char *f = Char(filter);
|
||||
sprintf(temp,"%d",wnum);
|
||||
c = Strstr(filter,temp);
|
||||
if (c) {
|
||||
while(*f != '\0' && (c = strstr(f,temp))) {
|
||||
if (*(c-1) == '-') wrn = 0; /* Warning disabled */
|
||||
if (*(c-1) == '+') wrn = 1; /* Warning enabled */
|
||||
f += strlen(temp);
|
||||
}
|
||||
}
|
||||
if (warnall || wrn) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue