File redshift-no-return-nonvoid.patch of Package redshift
Index: src/redshift.c
===================================================================
--- src/redshift.c.orig
+++ src/redshift.c
@@ -521,6 +521,7 @@ parse_gamma_string(const char *str, floa
/* Use value for all channels */
float g = atof(str);
gamma[0] = gamma[1] = gamma[2] = g;
+ return 0;
} else {
/* Parse separate value for each channel */
*(s++) = '\0';
@@ -532,7 +533,9 @@ parse_gamma_string(const char *str, floa
gamma[0] = atof(str); /* Red */
gamma[1] = atof(g_s); /* Blue */
gamma[2] = atof(s); /* Green */
+ return 0;
}
+ return -1;
}
static const gamma_method_t *