Skip to content

Commit

Permalink
8760 troff: variable 'type' set but not used
Browse files Browse the repository at this point in the history
Reviewed by: C Fraire <cfraire@me.com>
Reviewed by: Yuri Pankov <yuripv@icloud.com>
Reviewed by: John Howard <Echosoft.LLC@gmail.com>
Approved by: Dan McDonald <danmcd@joyent.com>
  • Loading branch information
tsoome authored and Dan McDonald committed Jan 23, 2018
1 parent d2aa06e commit c5fe87b
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions usr/src/cmd/troff/n9.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
* contributors.
*/

#pragma ident "%Z%%M% %I% %E% SMI"

#include <libintl.h>
#include <stdlib.h>

Expand Down Expand Up @@ -72,7 +70,7 @@ int csi_width[4] = {
*/

tchar
setz()
setz(void)
{
tchar i;

Expand All @@ -82,7 +80,7 @@ setz()
}

int
setline()
setline(void)
{
tchar *i;
tchar c;
Expand Down Expand Up @@ -140,8 +138,7 @@ setline()


int
eat(c)
int c;
eat(int c)
{
int i;

Expand All @@ -152,7 +149,7 @@ int c;


int
setov()
setov(void)
{
int j, k;
tchar i, o[NOV];
Expand Down Expand Up @@ -201,7 +198,7 @@ setov()


int
setbra()
setbra(void)
{
int k;
tchar i, *j, dwn;
Expand Down Expand Up @@ -246,7 +243,7 @@ setbra()


int
setvline()
setvline(void)
{
int i;
tchar c, rem, ver, neg;
Expand Down Expand Up @@ -308,10 +305,13 @@ setvline()

#define NPAIR (NC/2-6) /* max pairs in spline, etc. */

/*
* Generate internal cookies for a drawing function.
*/
int
setdraw() /* generate internal cookies for a drawing function */
setdraw(void)
{
int i, j, k, dx[NPAIR], dy[NPAIR], delim, type;
int i, j, k, dx[NPAIR], dy[NPAIR], delim, type __unused;
tchar c, drawbuf[NC];

/* input is \D'f dx dy dx dy ... c' (or at least it had better be) */
Expand Down Expand Up @@ -387,7 +387,7 @@ setdraw() /* generate internal cookies for a drawing function */


int
casefc()
casefc(void)
{
int i;
tchar j;
Expand All @@ -408,8 +408,7 @@ casefc()


tchar
setfield(x)
int x;
setfield(int x)
{
tchar ii, jj, *fp;
int i, j;
Expand Down Expand Up @@ -559,7 +558,7 @@ int x;
#ifdef NROFF
/* locale specific initialization */
int
localize()
localize(void)
{
extern int wdbindf();
extern wchar_t *wddelim();
Expand All @@ -571,7 +570,7 @@ localize()
multi_locale = 1;
else {
if (*codeset == '\0' ||
(strcmp(codeset, ISO646) == 0)) {
(strcmp(codeset, ISO646) == 0)) {
/*
* if codeset is an empty string
* assumes this is C locale (7-bit) locale.
Expand Down

0 comments on commit c5fe87b

Please sign in to comment.