From 4d164f3083b6269dc1e2afa9dca77994ae909ad9 Mon Sep 17 00:00:00 2001 From: krypt-n Date: Sun, 15 Nov 2015 22:31:05 +0100 Subject: [PATCH] Remove return NULL from function returning void gcc didnt catch that. clang did --- lemonbar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lemonbar.c b/lemonbar.c index 764cc51..08883e5 100644 --- a/lemonbar.c +++ b/lemonbar.c @@ -772,7 +772,7 @@ font_load (const char *pattern) ret->height = ret->ascent + ret->descent; } else { fprintf(stderr, "Could not load font %s\n", pattern); - return NULL; + return; } font_list[font_count++] = ret;