From 021b8ccdd6f3e4c5383ab0fe1cfbc34786f4b9a8 Mon Sep 17 00:00:00 2001 From: "andries@fam-hiemstra.nl" Date: Thu, 4 Jan 2024 15:08:59 +0100 Subject: [PATCH] removed some unused vars --- quickjs.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/quickjs.c b/quickjs.c index 9cbb0acb2..6540c2ebd 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 @@ int resize_ic_hash(JSContext *ctx, JSInlineCache *ic) 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) {