aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/troff
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2012-10-21 12:04:56 -0400
committerRuss Cox <rsc@swtch.com>2012-10-21 12:04:56 -0400
commitc5bfba483f4002c539cbeb4087827524dba8d0f8 (patch)
treea054fb1030f97f36308240d974057449acebcac3 /src/cmd/troff
parentb0ae8a46a0e40773d306906dd0fd9b33832e7086 (diff)
downloadplan9port-c5bfba483f4002c539cbeb4087827524dba8d0f8.tar.gz
plan9port-c5bfba483f4002c539cbeb4087827524dba8d0f8.tar.bz2
plan9port-c5bfba483f4002c539cbeb4087827524dba8d0f8.zip
silence more warnings
R=rsc http://codereview.appspot.com/6744056
Diffstat (limited to 'src/cmd/troff')
-rw-r--r--src/cmd/troff/n6.c2
-rw-r--r--src/cmd/troff/t6.c7
2 files changed, 6 insertions, 3 deletions
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);