diff options
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 |