From 7bb858d2a38d54a3bf18baa6d24f07b951271a96 Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Mon, 31 Oct 2016 11:03:44 +0100 Subject: [PATCH] e_fm: fix last commit to compile again with clang Commit fd8d41a2a6f1dc374932f18e69daf485c1cb5a3e introduced a void return in a non void function. On gcc this only produced a warnigns but it was a hard error on clang and should be fixed. 00:25:24.906 src/bin/e_fm.c:1523:15: error: non-void function 'e_fm2_icon_file_get' should return a value [-Wreturn-type] 00:25:24.950 if (!file) return; --- src/bin/e_fm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/e_fm.c b/src/bin/e_fm.c index ef8dad084..0358ed0e0 100644 --- a/src/bin/e_fm.c +++ b/src/bin/e_fm.c @@ -1520,7 +1520,7 @@ e_fm2_icon_file_get(Evas_Object *obj, const char *file) E_Fm2_Icon *ic; EFM_SMART_CHECK(NULL); - if (!file) return; + if (!file) return NULL; EINA_LIST_FOREACH(sd->icons, l, ic) { if ((ic->info.file) && (!strcmp(ic->info.file, file)))