From c5bfba483f4002c539cbeb4087827524dba8d0f8 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sun, 21 Oct 2012 12:04:56 -0400 Subject: silence more warnings R=rsc http://codereview.appspot.com/6744056 --- src/cmd/troff/n6.c | 2 +- src/cmd/troff/t6.c | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'src/cmd/troff') diff --git a/src/cmd/troff/n6.c b/src/cmd/troff/n6.c index 2328d6a9..69d48f2e 100644 --- a/src/cmd/troff/n6.c +++ b/src/cmd/troff/n6.c @@ -163,7 +163,7 @@ void n_setwd(void) int delim, emsz, k; int savhp, savapts, savapts1, savfont, savfont1, savpts, savpts1; - base = numtabp[ST].val = numtabp[ST].val = wid = numtabp[CT].val = 0; + base = numtabp[ST].val = numtabp[SB].val = wid = numtabp[CT].val = 0; if (ismot(i = getch())) return; delim = cbits(i); diff --git a/src/cmd/troff/t6.c b/src/cmd/troff/t6.c index 583d4aa8..4a2bd024 100644 --- a/src/cmd/troff/t6.c +++ b/src/cmd/troff/t6.c @@ -217,11 +217,15 @@ void xbits(Tchar i, int bitf) Tchar t_setch(int c) { +#ifndef UNICODE int j; +#endif char temp[50]; char *s; +#ifndef UNICODE j = 0; +#endif s = temp; if (c == '(') { /* \(xx */ if ((*s++ = getach()) == 0 || (*s++ = getach()) == 0) @@ -711,9 +715,8 @@ char *strdupl(const char *s) /* make a copy of s */ int setfp(int pos, int f, char *truename, int print) /* mount font f at position pos[0...nfonts] */ { - char pathname[NS], shortname[NS], *sl; + char pathname[NS], shortname[NS]; - sl = (char*)0; zapwcache(0); if (truename) strcpy(shortname, truename); -- cgit v1.2.3