summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2018-01-15 19:24:12 +0100
committerraveit65 <[email protected]>2018-01-25 12:23:55 +0100
commit67d7908b22a5ab533d29795109c24c36e10d433f (patch)
tree88c807af5c6ba5ff5d00e9bf9345eed3346940ab
parentcbbf80cb0a395fca2ca39aa9812c6093c204435f (diff)
downloadlibmateweather-67d7908b22a5ab533d29795109c24c36e10d433f.tar.bz2
libmateweather-67d7908b22a5ab533d29795109c24c36e10d433f.tar.xz
Revert "remove warning on unused bsun by actually testing value"
This reverts commit f34162f526a49e4302f6b87c82825f316408c745. fixes clock-applet crashes https://github.com/mate-desktop/libmateweather/issues/51
-rw-r--r--libmateweather/test_sun_moon.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/libmateweather/test_sun_moon.c b/libmateweather/test_sun_moon.c
index a3ab787..9ee1fd7 100644
--- a/libmateweather/test_sun_moon.c
+++ b/libmateweather/test_sun_moon.c
@@ -71,14 +71,10 @@ main (int argc, char **argv)
fabs(latitude), (latitude >= 0. ? 'N' : 'S'),
fabs(longitude), (longitude >= 0. ? 'E' : 'W'),
asctime(gmtime(&info.update)));
-
- if (bsun) {
- printf("sunrise: %s",
- (info.sunriseValid ? ctime(&info.sunrise) : "(invalid)\n"));
- printf("sunset: %s",
- (info.sunsetValid ? ctime(&info.sunset) : "(invalid)\n"));
- }
-
+ printf("sunrise: %s",
+ (info.sunriseValid ? ctime(&info.sunrise) : "(invalid)\n"));
+ printf("sunset: %s",
+ (info.sunsetValid ? ctime(&info.sunset) : "(invalid)\n"));
if (bmoon) {
printf("moonphase: %g\n", info.moonphase);
printf("moonlat: %g\n", info.moonlatitude);