summaryrefslogtreecommitdiff
path: root/navit/sunriset.c
diff options
context:
space:
mode:
authorsleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-08-11 20:24:38 +0000
committersleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-08-11 20:24:38 +0000
commit69c069069addb50f8fad2a388095b02ee8b34a68 (patch)
tree59ed13811aaef196aa8649fedf0a41e138516388 /navit/sunriset.c
parent413c26cb56e84969988cd0a96f52fd9dabded3f5 (diff)
downloadnavit-69c069069addb50f8fad2a388095b02ee8b34a68.tar.gz
Fix:core:Fix warnings from unused variables.|Part of #1154.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5564 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/sunriset.c')
-rw-r--r--navit/sunriset.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/navit/sunriset.c b/navit/sunriset.c
index 9c92898ec..122d14b32 100644
--- a/navit/sunriset.c
+++ b/navit/sunriset.c
@@ -209,7 +209,7 @@ void sunpos( double d, double *lon, double *r )
void sun_RA_dec( double d, double *RA, double *dec, double *r )
{
double lon, obl_ecl;
- double xs, ys, zs;
+ double xs, ys;
double xe, ye, ze;
/* Compute Sun's ecliptical coordinates */
@@ -218,7 +218,7 @@ void sun_RA_dec( double d, double *RA, double *dec, double *r )
/* Compute ecliptic rectangular coordinates */
xs = *r * cosd(lon);
ys = *r * sind(lon);
- zs = 0; /* because the Sun is always in the ecliptic plane! */
+ /* No zs, because the Sun is always in the ecliptic plane! */
/* Compute obliquity of ecliptic (inclination of Earth's axis) */
obl_ecl = 23.4393 - 3.563E-7 * d;