Remove unused variables
This commit is contained in:
parent
dbd7618c9f
commit
85a442f8c3
@ -38,7 +38,6 @@ usage(void)
|
|||||||
int
|
int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
char *end;
|
|
||||||
long seed;
|
long seed;
|
||||||
int ch;
|
int ch;
|
||||||
|
|
||||||
|
@ -27,8 +27,6 @@
|
|||||||
|
|
||||||
#define MAX_DEGREE 1000
|
#define MAX_DEGREE 1000
|
||||||
|
|
||||||
static char *argv0;
|
|
||||||
|
|
||||||
struct poly {
|
struct poly {
|
||||||
unsigned int degree;
|
unsigned int degree;
|
||||||
double *coefs;
|
double *coefs;
|
||||||
@ -239,12 +237,8 @@ do_newton(int argc, char *argv[])
|
|||||||
int
|
int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
struct poly p, q;
|
|
||||||
char *end;
|
|
||||||
unsigned int i, j, p_degree, q_degree;
|
|
||||||
int ch, nflag;
|
int ch, nflag;
|
||||||
|
|
||||||
argv0 = argv[0];
|
|
||||||
nflag = 0;
|
nflag = 0;
|
||||||
while ((ch = getopt(argc, argv, "n")) != -1)
|
while ((ch = getopt(argc, argv, "n")) != -1)
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
|
6
julia.c
6
julia.c
@ -73,7 +73,7 @@ iterate(long double complex z, long double complex c, long double *rit)
|
|||||||
{
|
{
|
||||||
long double complex dz = 1.0L;
|
long double complex dz = 1.0L;
|
||||||
long double t;
|
long double t;
|
||||||
unsigned long ci, i;
|
unsigned long i;
|
||||||
|
|
||||||
for (i = 0; i < niters && cabsl(z) < bailout; i++) {
|
for (i = 0; i < niters && cabsl(z) < bailout; i++) {
|
||||||
dz = df(z) * dz;
|
dz = df(z) * dz;
|
||||||
@ -100,7 +100,7 @@ static long
|
|||||||
fast_iterate(long double complex z, long double complex c, long double *rit)
|
fast_iterate(long double complex z, long double complex c, long double *rit)
|
||||||
{
|
{
|
||||||
long double t;
|
long double t;
|
||||||
unsigned long ci, i;
|
unsigned long i;
|
||||||
|
|
||||||
for (i = 0; i < niters && cabsl(z) < bailout; i++) {
|
for (i = 0; i < niters && cabsl(z) < bailout; i++) {
|
||||||
z = f(z) + c;
|
z = f(z) + c;
|
||||||
@ -139,7 +139,6 @@ julia_main(int argc, char *argv[])
|
|||||||
long long it;
|
long long it;
|
||||||
long double rit;
|
long double rit;
|
||||||
} *rescache;
|
} *rescache;
|
||||||
char *end;
|
|
||||||
struct color color;
|
struct color color;
|
||||||
long double complex crit, julia, z;
|
long double complex crit, julia, z;
|
||||||
long double julia_x = 0.0,
|
long double julia_x = 0.0,
|
||||||
@ -151,7 +150,6 @@ julia_main(int argc, char *argv[])
|
|||||||
displacement = 0,
|
displacement = 0,
|
||||||
zoom = 1.0,
|
zoom = 1.0,
|
||||||
light, light_x, light_y, light_z, rit, sec_h, zx, zy;
|
light, light_x, light_y, light_z, rit, sec_h, zx, zy;
|
||||||
intmax_t v;
|
|
||||||
long long it, idx, ritnum;
|
long long it, idx, ritnum;
|
||||||
unsigned int palette_size = 720,
|
unsigned int palette_size = 720,
|
||||||
width = 640,
|
width = 640,
|
||||||
|
@ -83,8 +83,6 @@ int
|
|||||||
palette_main(int argc, char *argv[])
|
palette_main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
struct color *palette;
|
struct color *palette;
|
||||||
char *end;
|
|
||||||
uintmax_t v;
|
|
||||||
unsigned int width, height;
|
unsigned int width, height;
|
||||||
int ch, i, j;
|
int ch, i, j;
|
||||||
|
|
||||||
|
2
util.c
2
util.c
@ -46,9 +46,7 @@ void
|
|||||||
errx(int eval, const char *fmt, ...)
|
errx(int eval, const char *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
int saved_errno;
|
|
||||||
|
|
||||||
saved_errno = errno;
|
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
if (fmt != NULL) {
|
if (fmt != NULL) {
|
||||||
fprintf(stderr, "%s: ", xgetprogname());
|
fprintf(stderr, "%s: ", xgetprogname());
|
||||||
|
Loading…
Reference in New Issue
Block a user