diff options
author | nectar <nectar@FreeBSD.org> | 2003-02-16 17:29:11 +0000 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2003-02-16 17:29:11 +0000 |
commit | 832e8b7f9a7422b49453b7e389ec411d3037a50f (patch) | |
tree | 3b5579370346d51f378192429db2130e5e82a6e4 /lib/libc/regex | |
parent | 81da3fbe2a40d9b80c8e96af564180f8aa22074e (diff) | |
download | FreeBSD-src-832e8b7f9a7422b49453b7e389ec411d3037a50f.zip FreeBSD-src-832e8b7f9a7422b49453b7e389ec411d3037a50f.tar.gz |
Eliminate 61 warnings emitted at WARNS=2 (leaving 53 to go).
Only warnings that could be fixed without changing the generated object
code and without restructuring the source code have been handled.
Reviewed by: /sbin/md5
Diffstat (limited to 'lib/libc/regex')
-rw-r--r-- | lib/libc/regex/engine.c | 6 | ||||
-rw-r--r-- | lib/libc/regex/regcomp.c | 4 | ||||
-rw-r--r-- | lib/libc/regex/regexec.c | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/regex/engine.c b/lib/libc/regex/engine.c index a5f39de..9d69c1e 100644 --- a/lib/libc/regex/engine.c +++ b/lib/libc/regex/engine.c @@ -186,8 +186,8 @@ int eflags; pp = mustlast; for (dp = start+g->mlen-1; dp < stop;) { /* Fast skip non-matches */ - while (dp < stop && charjump[*dp]) - dp += charjump[*dp]; + while (dp < stop && charjump[(int)*dp]) + dp += charjump[(int)*dp]; if (dp >= stop) break; @@ -203,7 +203,7 @@ int eflags; /* Jump to next possible match */ mj = matchjump[pp - mustfirst]; - cj = charjump[*dp]; + cj = charjump[(int)*dp]; dp += (cj < mj ? mj : cj); pp = mustlast; } diff --git a/lib/libc/regex/regcomp.c b/lib/libc/regex/regcomp.c index 07c3955..e342fda 100644 --- a/lib/libc/regex/regcomp.c +++ b/lib/libc/regex/regcomp.c @@ -106,7 +106,7 @@ static void freeset(struct parse *p, cset *cs); static int freezeset(struct parse *p, cset *cs); static int firstch(struct parse *p, cset *cs); static int nch(struct parse *p, cset *cs); -static void mcadd(struct parse *p, cset *cs, char *cp); +static void mcadd(struct parse *p, cset *cs, char *cp) __unused; #if used static void mcsub(cset *cs, char *cp); static int mcin(cset *cs, char *cp); @@ -1964,7 +1964,7 @@ struct re_guts *g; * is the first one that would be matched). */ for (mindex = 0; mindex < g->mlen; mindex++) - g->charjump[g->must[mindex]] = g->mlen - mindex - 1; + g->charjump[(int)g->must[mindex]] = g->mlen - mindex - 1; } /* diff --git a/lib/libc/regex/regexec.c b/lib/libc/regex/regexec.c index abbd9ba..c13c72d 100644 --- a/lib/libc/regex/regexec.c +++ b/lib/libc/regex/regexec.c @@ -61,7 +61,7 @@ __FBSDID("$FreeBSD$"); #include "utils.h" #include "regex2.h" -static int nope = 0; /* for use in asserts; shuts lint up */ +static int nope __unused = 0; /* for use in asserts; shuts lint up */ /* macros for manipulating states, small version */ #define states long |