From cc2c47bc3b31d8ef989014345b960a3d2659e2a9 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 10 Oct 2019 16:56:51 +0200 Subject: Update config.mk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- config.mk | 4 ++-- radharc.c | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/config.mk b/config.mk index 66d6676..7111c86 100644 --- a/config.mk +++ b/config.mk @@ -2,5 +2,5 @@ PREFIX = /usr MANPREFIX = $(PREFIX)/share/man CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -CFLAGS = -std=c99 -Wall -g -LDFLAGS = -lcoopgamma -lred -lm +CFLAGS = -std=c99 -Wall -O2 +LDFLAGS = -lcoopgamma -lred -lm -s diff --git a/radharc.c b/radharc.c index 023afab..f67ae8f 100644 --- a/radharc.c +++ b/radharc.c @@ -304,14 +304,12 @@ get_temperature(double *tp) if (choosen_temperature < 0) { if (libred_solar_elevation(latitude, longitude, tp)) return -1; - printf("elevation: %g\n", *tp); if (*tp < low_elev) *tp = low_elev; if (*tp > high_elev) *tp = high_elev; *tp = (*tp - low_elev) / (high_elev - low_elev); *tp = low_temp + *tp * (high_temp - low_temp); - printf("temperature: %g\n", *tp); } else { *tp = choosen_temperature; } -- cgit v1.2.3-70-g09d2