summaryrefslogtreecommitdiffstats
path: root/src/cmd/troff/t6.c
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/t6.c
parentb0ae8a46a0e40773d306906dd0fd9b33832e7086 (diff)
downloadplan9port-c5bfba483f4002c539cbeb4087827524dba8d0f8.tar.gz
plan9port-c5bfba483f4002c539cbeb4087827524dba8d0f8.zip
silence more warnings
R=rsc http://codereview.appspot.com/6744056
Diffstat (limited to 'src/cmd/troff/t6.c')
-rw-r--r--src/cmd/troff/t6.c7
1 files changed, 5 insertions, 2 deletions
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);