diff --git a/SWIG/Source/DOH/Doh/base.c b/SWIG/Source/DOH/Doh/base.c index 2b0969c78..bb844252d 100644 --- a/SWIG/Source/DOH/Doh/base.c +++ b/SWIG/Source/DOH/Doh/base.c @@ -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); diff --git a/SWIG/Source/DOH/Doh/memory.c b/SWIG/Source/DOH/Doh/memory.c index 2446bca1a..56b522b06 100644 --- a/SWIG/Source/DOH/Doh/memory.c +++ b/SWIG/Source/DOH/Doh/memory.c @@ -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; diff --git a/SWIG/Source/DOH/Doh/string.c b/SWIG/Source/DOH/Doh/string.c index 16eea6f27..8205fdb00 100644 --- a/SWIG/Source/DOH/Doh/string.c +++ b/SWIG/Source/DOH/Doh/string.c @@ -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; diff --git a/SWIG/Source/Preprocessor/cpp.c b/SWIG/Source/Preprocessor/cpp.c index aa7a917d9..cae6ec835 100644 --- a/SWIG/Source/Preprocessor/cpp.c +++ b/SWIG/Source/Preprocessor/cpp.c @@ -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("");