Skip to content

Commit 79dcab3

Browse files
committed
pedantic: silence warnings when compiled with -pedantic
1 parent 6ba35b0 commit 79dcab3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

quickjs.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4591,22 +4591,22 @@ static void js_free_cstring(JSRuntime *rt, const void *ptr)
45914591

45924592
void JS_FreeCString(JSContext *ctx, const char *ptr)
45934593
{
4594-
return js_free_cstring(ctx->rt, ptr);
4594+
js_free_cstring(ctx->rt, ptr);
45954595
}
45964596

45974597
void JS_FreeCStringRT(JSRuntime *rt, const char *ptr)
45984598
{
4599-
return js_free_cstring(rt, ptr);
4599+
js_free_cstring(rt, ptr);
46004600
}
46014601

46024602
void JS_FreeCStringUTF16(JSContext *ctx, const uint16_t *ptr)
46034603
{
4604-
return js_free_cstring(ctx->rt, ptr);
4604+
js_free_cstring(ctx->rt, ptr);
46054605
}
46064606

46074607
void JS_FreeCStringRT_UTF16(JSRuntime *rt, const uint16_t *ptr)
46084608
{
4609-
return js_free_cstring(rt, ptr);
4609+
js_free_cstring(rt, ptr);
46104610
}
46114611

46124612
static int memcmp16_8(const uint16_t *src1, const uint8_t *src2, int len)

0 commit comments

Comments
 (0)