Remove unused variables

This commit is contained in:
Lucas 2020-03-08 21:31:02 +00:00
parent dbd7618c9f
commit 85a442f8c3
5 changed files with 2 additions and 15 deletions

View File

@ -38,7 +38,6 @@ usage(void)
int
main(int argc, char *argv[])
{
char *end;
long seed;
int ch;

View File

@ -27,8 +27,6 @@
#define MAX_DEGREE 1000
static char *argv0;
struct poly {
unsigned int degree;
double *coefs;
@ -239,12 +237,8 @@ do_newton(int argc, char *argv[])
int
main(int argc, char *argv[])
{
struct poly p, q;
char *end;
unsigned int i, j, p_degree, q_degree;
int ch, nflag;
argv0 = argv[0];
nflag = 0;
while ((ch = getopt(argc, argv, "n")) != -1)
switch (ch) {

View File

@ -73,7 +73,7 @@ iterate(long double complex z, long double complex c, long double *rit)
{
long double complex dz = 1.0L;
long double t;
unsigned long ci, i;
unsigned long i;
for (i = 0; i < niters && cabsl(z) < bailout; i++) {
dz = df(z) * dz;
@ -100,7 +100,7 @@ static long
fast_iterate(long double complex z, long double complex c, long double *rit)
{
long double t;
unsigned long ci, i;
unsigned long i;
for (i = 0; i < niters && cabsl(z) < bailout; i++) {
z = f(z) + c;
@ -139,7 +139,6 @@ julia_main(int argc, char *argv[])
long long it;
long double rit;
} *rescache;
char *end;
struct color color;
long double complex crit, julia, z;
long double julia_x = 0.0,
@ -151,7 +150,6 @@ julia_main(int argc, char *argv[])
displacement = 0,
zoom = 1.0,
light, light_x, light_y, light_z, rit, sec_h, zx, zy;
intmax_t v;
long long it, idx, ritnum;
unsigned int palette_size = 720,
width = 640,

View File

@ -83,8 +83,6 @@ int
palette_main(int argc, char *argv[])
{
struct color *palette;
char *end;
uintmax_t v;
unsigned int width, height;
int ch, i, j;

2
util.c
View File

@ -46,9 +46,7 @@ void
errx(int eval, const char *fmt, ...)
{
va_list ap;
int saved_errno;
saved_errno = errno;
va_start(ap, fmt);
if (fmt != NULL) {
fprintf(stderr, "%s: ", xgetprogname());