summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2020-04-19 01:43:33 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2020-04-19 01:43:33 +0200
commitcdf48fcf704b6d7964fc6fb3a33bb5bd4b3d0dd3 (patch)
tree6a3fadb2b70f206da5524c97d5f2ef49e549cb77
parent3283a11a881e42f1bfef95834451a4e551713391 (diff)
eolian: add composites into hard deps when checking
This prevents composites from being considered unused imports.
-rw-r--r--src/lib/eolian/database_check.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/eolian/database_check.c b/src/lib/eolian/database_check.c
index 0626512076..57cc6c6abc 100644
--- a/src/lib/eolian/database_check.c
+++ b/src/lib/eolian/database_check.c
@@ -130,6 +130,11 @@ _check_class(const Eolian_Class *cl, Eina_Hash *depset, Eina_Hash *chash)
130 _add_dep(depset, icl->base.unit); 130 _add_dep(depset, icl->base.unit);
131 eina_iterator_free(itr); 131 eina_iterator_free(itr);
132 132
133 itr = eina_list_iterator_new(cl->composite);
134 EINA_ITERATOR_FOREACH(itr, icl)
135 _add_dep(depset, icl->base.unit);
136 eina_iterator_free(itr);
137
133 const Eolian_Function *fid; 138 const Eolian_Function *fid;
134 itr = eina_list_iterator_new(cl->properties); 139 itr = eina_list_iterator_new(cl->properties);
135 EINA_ITERATOR_FOREACH(itr, fid) 140 EINA_ITERATOR_FOREACH(itr, fid)