diff options
author | Jacob Moody <moody@posixcafe.org> | 2023-03-16 05:16:17 +0000 |
---|---|---|
committer | Jacob Moody <moody@posixcafe.org> | 2023-03-16 05:16:17 +0000 |
commit | f40225e86cf4b92cab975d9121ff06ed5cfe9d91 (patch) | |
tree | 2570c74b9dea2a44b0a9b6c57c81a9a56e5b0802 /sys/src | |
parent | 125ca8ddfee1da241d86f82439e24467b25b310a (diff) |
auth/none, mothra, news, libttf: unused variable removal
Diffstat (limited to 'sys/src')
-rw-r--r-- | sys/src/cmd/auth/none.c | 2 | ||||
-rw-r--r-- | sys/src/cmd/mothra/snoop.c | 1 | ||||
-rw-r--r-- | sys/src/cmd/news.c | 2 | ||||
-rw-r--r-- | sys/src/libttf/scan.c | 4 |
4 files changed, 2 insertions, 7 deletions
diff --git a/sys/src/cmd/auth/none.c b/sys/src/cmd/auth/none.c index 42c264b42..01822b6aa 100644 --- a/sys/src/cmd/auth/none.c +++ b/sys/src/cmd/auth/none.c @@ -30,8 +30,6 @@ run(char **a) void main(int argc, char *argv[]) { - int fd; - ARGBEGIN{ case 'd': newnsdebug = 1; diff --git a/sys/src/cmd/mothra/snoop.c b/sys/src/cmd/mothra/snoop.c index 833141544..dada8bdc5 100644 --- a/sys/src/cmd/mothra/snoop.c +++ b/sys/src/cmd/mothra/snoop.c @@ -124,7 +124,6 @@ int snooptype(int fd) { char buf[128]; - int i; if(filetype(fd, buf, sizeof(buf)) < 0) return -1; diff --git a/sys/src/cmd/news.c b/sys/src/cmd/news.c index ef601172c..e64d397ce 100644 --- a/sys/src/cmd/news.c +++ b/sys/src/cmd/news.c @@ -44,7 +44,7 @@ void note(char *s); void main(int argc, char *argv[]) { - int i, aflag = 0, nflag = 0; + int i; int doupdate = 1; int printall = 0; void (*printer)(char*) = print_item; diff --git a/sys/src/libttf/scan.c b/sys/src/libttf/scan.c index 8a3743954..d512eb556 100644 --- a/sys/src/libttf/scan.c +++ b/sys/src/libttf/scan.c @@ -409,7 +409,7 @@ ttfscan(TTGlyph *g) int ttfgetcontour(TTGlyph *g, int i, float **fp, int *np) { - float offx, offy, scale; + float offy, scale; float *nf; int n, j; TTPoint p, q, r; @@ -425,11 +425,9 @@ ttfgetcontour(TTGlyph *g, int i, float **fp, int *np) } if(g->bit != nil){ scale = 1.0f / 64; - offx = g->xminpx; offy = g->yminpx; }else{ scale = 1.0f * g->font->ppem / g->font->u->emsize; - offx = 0; offy = 0; } p = g->pt[g->confst[i]]; |