From: Jakob Haufe Date: Thu, 28 Feb 2013 13:15:22 +0000 (+0100) Subject: Fix FTBFS on Hurd X-Git-Tag: 2.8~31 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d62e10c56dd02401d89e9d5d2ae32ba51ad9744b;p=i3%2Fi3status Fix FTBFS on Hurd On GNU/Hurd, THERMAL_ZONE is undefined. This makes compilation fail as outwalk is declared inside of #ifdef THERMAL_ZONE, but it's used outside of it (by OUTPUT_FULL_TEXT). This moves the declaration outside the #ifdef to allow for successful compilation on Hurd again. --- diff --git a/src/print_cpu_temperature.c b/src/print_cpu_temperature.c index 0e02070..8778dad 100644 --- a/src/print_cpu_temperature.c +++ b/src/print_cpu_temperature.c @@ -35,9 +35,9 @@ static char *thermal_zone; * */ void print_cpu_temperature_info(yajl_gen json_gen, char *buffer, int zone, const char *path, const char *format, int max_threshold) { + char *outwalk = buffer; #ifdef THERMAL_ZONE const char *walk; - char *outwalk = buffer; bool colorful_output = false; if (path == NULL)