From b47782372b98de49b06a65ca8032a6a99360281b Mon Sep 17 00:00:00 2001 From: Daniel Kolesa Date: Mon, 11 Jun 2018 13:07:23 +0200 Subject: [PATCH] eolian: silence a potentially uninitialized warning Compiler thinks mname might be used uninitialized, which is never the case, because cl only exists if mname has been set. It still creates an annoying warning though, so fix that. --- src/bin/eolian/docs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/eolian/docs.c b/src/bin/eolian/docs.c index 795808549a..bd2e0b68d5 100644 --- a/src/bin/eolian/docs.c +++ b/src/bin/eolian/docs.c @@ -74,7 +74,7 @@ _generate_ref(const Eolian_State *state, const char *refn, Eina_Strbuf *wbuf, Eolian_Function_Type ftype = EOLIAN_UNRESOLVED; if (!cl) { - const char *mname; + const char *mname = NULL; if (!strcmp(sfx, ".get")) ftype = EOLIAN_PROP_GET; else if (!strcmp(sfx, ".set")) ftype = EOLIAN_PROP_SET; if (ftype != EOLIAN_UNRESOLVED)