regex/engine.c: error: variable 'dp' set but not used

The issue found with gcc6 build (originally on illumos, confirmed on FreeBSD).
Mark it __unused.

Differential Revision:	https://reviews.freebsd.org/D13109
This commit is contained in:
tsoome 2018-07-14 09:29:45 +00:00
parent 1ad2d2a70b
commit c295ed4d32

View File

@ -385,7 +385,7 @@ dissect(struct match *m,
const char *ssp; /* start of string matched by subsubRE */
const char *sep; /* end of string matched by subsubRE */
const char *oldssp; /* previous ssp */
const char *dp;
const char *dp __unused;
AT("diss", start, stop, startst, stopst);
sp = start;