Removed some compiler warnings

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@599 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2000-07-24 03:52:15 +00:00
commit 6b4e71e3a4
4 changed files with 5 additions and 7 deletions

View file

@ -65,6 +65,7 @@ DohCopy(const DOH *obj) {
objinfo = dohtypes[b->type];
if (objinfo->doh_copy)
return (objinfo->doh_copy)(b);
return 0;
}
void
@ -712,7 +713,7 @@ DOH *
DohGetfile(DOH *ho) {
DohBase *h = (DohBase *) ho;
DohObjInfo *objinfo;
if (!h) return;
if (!h) return 0;
objinfo = dohtypes[h->type];
if (objinfo->doh_getfile)
return (objinfo->doh_getfile)(h);
@ -739,7 +740,7 @@ int
DohGetline(DOH *ho) {
DohBase *h = (DohBase *) ho;
DohObjInfo *objinfo;
if (!h) return;
if (!h) return 0;
objinfo = dohtypes[h->type];
if (objinfo->doh_getline)
return (objinfo->doh_getline)(h);

View file

@ -57,7 +57,6 @@ CreatePool() {
static void
InitPools() {
int i;
if (pools_initialized) return;
CreatePool(); /* Create initial pool */
pools_initialized = 1;
@ -76,7 +75,6 @@ DohCheck(const DOH *ptr) {
Pool *p = Pools;
register char *cptr = (char *) ptr;
register char *pptr;
int d;
while (p) {
pptr = (char *) p->ptr;
if ((cptr >= pptr) && (cptr < (pptr + p->blen))) return 1;

View file

@ -496,6 +496,7 @@ static char *match_identifier(char *base, char *s, char *token, int tokenlen) {
}
return s;
}
return 0;
}
static
@ -507,7 +508,7 @@ int replace_simple(String *str, char *token, char *rep, int flags, int count, ch
int ic;
int rcount = 0;
int noquote = 0;
char *c, *s, *t, *end, *first;
char *c, *s, *t, *first;
char *q, *q2;
register char *base;
int i;

View file

@ -767,10 +767,8 @@ Preprocessor_parse(DOH *s)
int start_level = 0;
int cpp_lines = 0;
int cond_lines[256];
int scp;
ns = NewString(""); /* Return result */
/* scp = NewScope(); */
decl = NewString("");
id = NewString("");