diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-06-10 19:17:15 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-06-10 19:17:15 +0000 |
commit | bec2e37e16be5b57221695c84277413c81427c3d (patch) | |
tree | 5c18a21fea57f5d28eead7dd169ac2034b9677a6 /term_ascii.c | |
parent | be3e970f578850301090009923eccbd3a255b801 (diff) | |
download | mandoc-bec2e37e16be5b57221695c84277413c81427c3d.tar.gz mandoc-bec2e37e16be5b57221695c84277413c81427c3d.tar.zst mandoc-bec2e37e16be5b57221695c84277413c81427c3d.zip |
Avoid warning "unused variable" when compiling without HAVE_WCHAR.
Issue found on Debian by Markus <Waldeck at gmx dot de>.
Diffstat (limited to 'term_ascii.c')
-rw-r--r-- | term_ascii.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/term_ascii.c b/term_ascii.c index 7abbb91f..a66fa77a 100644 --- a/term_ascii.c +++ b/term_ascii.c @@ -1,4 +1,4 @@ -/* $Id: term_ascii.c,v 1.45 2015/04/04 17:47:18 schwarze Exp $ */ +/* $Id: term_ascii.c,v 1.46 2015/06/10 19:17:15 schwarze Exp $ */ /* * Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2014, 2015 Ingo Schwarze <schwarze@openbsd.org> @@ -62,7 +62,9 @@ static struct termp * ascii_init(enum termenc enc, const struct mchars *mchars, const struct manoutput *outopts) { +#if HAVE_WCHAR char *v; +#endif struct termp *p; p = mandoc_calloc(1, sizeof(struct termp)); |