From 5f6171c7227ac669f73d3c745a2c91595a231018 Mon Sep 17 00:00:00 2001 From: Andries Hiemstra <46776382+andrieshiemstra@users.noreply.github.com> Date: Thu, 4 Jan 2024 16:55:56 +0100 Subject: [PATCH] removed some unused vars (#245) --- quickjs.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/quickjs.c b/quickjs.c index 9cbb0ac..6540c2e 100644 --- a/quickjs.c +++ b/quickjs.c @@ -5561,7 +5561,7 @@ static void mark_children(JSRuntime *rt, JSGCObjectHeader *gp, { JSShape **shape, *(*shapes)[IC_CACHE_ITEM_CAPACITY]; JSFunctionBytecode *b = (JSFunctionBytecode *)gp; - int i, j; + int i; for(i = 0; i < b->cpool_count; i++) { JS_MarkValue(rt, b->cpool[i], mark_func); } @@ -36210,7 +36210,7 @@ static const JSCFunctionListEntry js_error_proto_funcs[] = { static JSValue js_error_get_stackTraceLimit(JSContext *ctx, JSValue this_val) { - JSValue val, ret; + JSValue val; val = JS_ToObject(ctx, this_val); if (JS_IsException(val)) @@ -36232,7 +36232,7 @@ static JSValue js_error_set_stackTraceLimit(JSContext *ctx, JSValue this_val, JS static JSValue js_error_get_prepareStackTrace(JSContext *ctx, JSValue this_val) { - JSValue val, ret; + JSValue val; val = JS_ToObject(ctx, this_val); if (JS_IsException(val)) @@ -48764,7 +48764,7 @@ static JSValue js_typed_array_at(JSContext *ctx, JSValue this_val, static JSValue js_typed_array_with(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { - JSValue arr, val, ret; + JSValue arr, val; JSObject *p; int64_t idx, len; @@ -51645,7 +51645,7 @@ fail: int free_ic(JSRuntime* rt, JSInlineCache *ic) { - uint32_t i, j; + uint32_t i; JSInlineCacheHashSlot *ch, *ch_next; JSShape **shape, *(*shapes)[IC_CACHE_ITEM_CAPACITY]; if (ic->cache) {