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:
Toomas Soome 2018-07-14 09:29:45 +00:00
parent 3e603d1ffa
commit 307546ec52
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=336274

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;