summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2017-08-10 19:17:12 +0300
committerDan McDonald <danmcd@joyent.com>2018-01-23 10:21:41 -0500
commitc5fe87b82a0473350759338e29252322c7f49f28 (patch)
treeac1e41d4f0e23c71fa2df9a579f8b370d3983d4c
parentd2aa06e8e95fc3abd82008cdd0959cbbdb2d50fb (diff)
downloadillumos-joyent-c5fe87b82a0473350759338e29252322c7f49f28.tar.gz
8760 troff: variable 'type' set but not used
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>
-rw-r--r--usr/src/cmd/troff/n9.c31
1 files changed, 15 insertions, 16 deletions
diff --git a/usr/src/cmd/troff/n9.c b/usr/src/cmd/troff/n9.c
index 0d779e3acb..1fd3dc46fa 100644
--- a/usr/src/cmd/troff/n9.c
+++ b/usr/src/cmd/troff/n9.c
@@ -36,8 +36,6 @@
* contributors.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <libintl.h>
#include <stdlib.h>
@@ -72,7 +70,7 @@ int csi_width[4] = {
*/
tchar
-setz()
+setz(void)
{
tchar i;
@@ -82,7 +80,7 @@ setz()
}
int
-setline()
+setline(void)
{
tchar *i;
tchar c;
@@ -140,8 +138,7 @@ s1:
int
-eat(c)
-int c;
+eat(int c)
{
int i;
@@ -152,7 +149,7 @@ int c;
int
-setov()
+setov(void)
{
int j, k;
tchar i, o[NOV];
@@ -201,7 +198,7 @@ setov()
int
-setbra()
+setbra(void)
{
int k;
tchar i, *j, dwn;
@@ -246,7 +243,7 @@ setbra()
int
-setvline()
+setvline(void)
{
int i;
tchar c, rem, ver, neg;
@@ -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) */
@@ -387,7 +387,7 @@ setdraw() /* generate internal cookies for a drawing function */
int
-casefc()
+casefc(void)
{
int i;
tchar j;
@@ -408,8 +408,7 @@ casefc()
tchar
-setfield(x)
-int x;
+setfield(int x)
{
tchar ii, jj, *fp;
int i, j;
@@ -559,7 +558,7 @@ rtn:
#ifdef NROFF
/* locale specific initialization */
int
-localize()
+localize(void)
{
extern int wdbindf();
extern wchar_t *wddelim();
@@ -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.