Eliminated compiler warning.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5216 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
523caaa789
commit
91ab4d286e
1 changed files with 4 additions and 4 deletions
|
|
@ -61,7 +61,7 @@ Swig_warning(int wnum, const String_or_char *filename, int line, const char *fmt
|
||||||
char temp[64], *t;
|
char temp[64], *t;
|
||||||
t = temp;
|
t = temp;
|
||||||
msg = Char(out);
|
msg = Char(out);
|
||||||
while (isdigit(*msg)) {
|
while (isdigit((int) *msg)) {
|
||||||
*(t++) = *(msg++);
|
*(t++) = *(msg++);
|
||||||
}
|
}
|
||||||
if (t != temp) {
|
if (t != temp) {
|
||||||
|
|
@ -158,15 +158,15 @@ Swig_warnfilter(const String_or_char *wlist, int add) {
|
||||||
c = Char(s);
|
c = Char(s);
|
||||||
c = strtok(c,", ");
|
c = strtok(c,", ");
|
||||||
while (c) {
|
while (c) {
|
||||||
if (isdigit(*c) || (*c == '+') || (*c == '-')) {
|
if (isdigit((int) *c) || (*c == '+') || (*c == '-')) {
|
||||||
if (add) {
|
if (add) {
|
||||||
Insert(filter,0,c);
|
Insert(filter,0,c);
|
||||||
if (isdigit(*c)) {
|
if (isdigit((int) *c)) {
|
||||||
Insert(filter,0,"-");
|
Insert(filter,0,"-");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
char temp[32];
|
char temp[32];
|
||||||
if (isdigit(*c)) {
|
if (isdigit((int) *c)) {
|
||||||
sprintf(temp,"-%s",c);
|
sprintf(temp,"-%s",c);
|
||||||
} else {
|
} else {
|
||||||
strcpy(temp,c);
|
strcpy(temp,c);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue