From e3610b92b9c98f56f471ca5dbdf1a0fa1e105fff Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Mon, 16 Sep 2019 01:26:16 +0100 Subject: [PATCH] edje - physics - remove warning of unused arg if physics disabled simple warning removal. no core changes. --- src/lib/edje/edje_load.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/lib/edje/edje_load.c b/src/lib/edje/edje_load.c index d719b10a98..5bfd11fb82 100644 --- a/src/lib/edje/edje_load.c +++ b/src/lib/edje/edje_load.c @@ -740,10 +740,10 @@ _edje_process_sizeclass(Edje *ed) } } +#ifdef HAVE_EPHYSICS static inline void _edje_process_physics(Edje *ed) { -#ifdef HAVE_EPHYSICS if (EPH_LOAD()) { EPH_CALL(ephysics_init)(); @@ -758,10 +758,8 @@ _edje_process_physics(Edje *ed) ed->collection->physics.world.gravity.y, ed->collection->physics.world.gravity.z); } -#else - ERR("Edje compiled without support to physics."); -#endif } +#endif Eina_Error _edje_object_file_set_internal(Evas_Object *obj, const Eina_File *file, const char *group, const char *parent, Eina_List *group_path, Eina_Array *nested) @@ -856,7 +854,13 @@ _edje_object_file_set_internal(Evas_Object *obj, const Eina_File *file, const ch unsigned int i; if (ed->collection->physics_enabled) - _edje_process_physics(ed); + { +#ifdef HAVE_EPHYSICS + _edje_process_physics(ed); +#else + ERR("Edje compiled without support to physics."); +#endif + } /* handle multiseat stuff */ _edje_devices_add(ed, tev);