diff options
| author | Christoph Berg <myon@debian.org> | 2026-09-26 23:24:03 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-09-26 23:24:03 +0200 |
| commit | 059831534c7e884f0a607ed86b582fd00d821731 (patch) | |
| tree | 76bcb67a78f8aa2654fd34c2ad801a62136b0170 /map65/libm65/tmoonsub.c | |
| parent | d83a420f0517d7fc47aeb288a6a0cf4891784fcc (diff) | |
New upstream version 3.2.0~rc1+dfsgupstream/3.2.0_rc1+dfsg
Diffstat (limited to 'map65/libm65/tmoonsub.c')
| -rw-r--r-- | map65/libm65/tmoonsub.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/map65/libm65/tmoonsub.c b/map65/libm65/tmoonsub.c index 29ac28b4..f33dec0e 100644 --- a/map65/libm65/tmoonsub.c +++ b/map65/libm65/tmoonsub.c @@ -36,7 +36,7 @@ void tmoonsub_(double *day, double *glat, double *glong, double *moonalt, double *mrv, double *l, double *b, double *paxis); static const char -*usage = " Usage: tmoon date[yyyymm] timz[+/-h.hh] long[+/-dddmm] lat[+/-ddmm]\n" +usage[] = " Usage: tmoon date[yyyymm] timz[+/-h.hh] long[+/-dddmm] lat[+/-ddmm]\n" "example: tmoon 200009 0 -00155 5230\n"; /* @@ -360,6 +360,7 @@ void libration(double day, double lambda, double beta, double alpha, double *l, */ void illumination(double day, double lra, double ldec, double dr, double sra, double sdec, double *pabl, double *ill) { double x, y, phi, i; + (void)day; y = cos(sdec) * sin(sra - lra); x = sin(sdec) * cos(ldec) - cos(sdec) * sin(ldec) * cos (sra - lra); *pabl = atan22(y, x); @@ -448,6 +449,7 @@ R is unchanged. */ void equatorial(double d, double *lon, double *lat, double *r) { double eps, ceps, seps, l, b; + (void)r; l = *lon; b = * lat; @@ -464,6 +466,8 @@ of above, but used to find topocentric ecliptic coords. */ void ecliptic(double d, double *lon, double *lat, double *r) { double eps, ceps, seps, alp, dec; + (void)r; + alp = *lon; dec = *lat; eps = epsilon(d); |
