From d2ef81dd6ebc0c8e8586f4137cd64dc82a335db8 Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Mon, 15 Jul 2024 08:14:36 -0700 Subject: [PATCH] Remove unused-but-set-variable from circum.c Allows `-Wunused-but-set-variable` to succeed. --- libastro/circum.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libastro/circum.c b/libastro/circum.c index 41be1b0..6acd70c 100644 --- a/libastro/circum.c +++ b/libastro/circum.c @@ -424,7 +424,6 @@ obj_hyperbolic (Now *np, Obj *op) double e; /* fast eccentricity */ double ll=0, sll, cll; /* helio angle between object and earth */ double mag; /* magnitude */ - double a; /* mean distance */ double tp; /* time from perihelion (days) */ double rpd=0; double y; @@ -435,7 +434,6 @@ obj_hyperbolic (Now *np, Obj *op) lg = lsn + PI; e = op->h_e; - a = op->h_qp/(e - 1.0); /* correct for light time by computing position at time mjd, then * again at mjd-dt, where