From 5101d932f7e6002c8dab2f4c8b556560c3f13e20 Mon Sep 17 00:00:00 2001 From: slaff Date: Mon, 13 Feb 2017 13:14:50 +0100 Subject: [PATCH] Fix compilation errors when LCACHE is disabled. (#1570) JerryScript-DCO-1.0-Signed-off-by: Slavey Karadzhov slaff@attachix.com --- jerry-core/ecma/base/ecma-lcache.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jerry-core/ecma/base/ecma-lcache.c b/jerry-core/ecma/base/ecma-lcache.c index 4db8cc9f5..709ea81ef 100644 --- a/jerry-core/ecma/base/ecma-lcache.c +++ b/jerry-core/ecma/base/ecma-lcache.c @@ -127,6 +127,8 @@ ecma_lcache_insert (ecma_object_t *object_p, /**< object */ entry_p->prop_p = prop_p; ecma_set_property_lcached (entry_p->prop_p, true); +#else /* CONFIG_ECMA_LCACHE_DISABLE */ + JERRY_UNUSED (name_cp); #endif /* !CONFIG_ECMA_LCACHE_DISABLE */ } /* ecma_lcache_insert */ @@ -266,6 +268,8 @@ ecma_lcache_invalidate (ecma_object_t *object_p, /**< object */ /* The property must be present. */ JERRY_UNREACHABLE (); +#else /* CONFIG_ECMA_LCACHE_DISABLE */ + JERRY_UNUSED (name_cp); #endif /* !CONFIG_ECMA_LCACHE_DISABLE */ } /* ecma_lcache_invalidate */