Skip to content

Commit 02f06f6

Browse files
satk0saghul
authored andcommitted
Remove unused variable and add flags, fix issue #894
1 parent 882f885 commit 02f06f6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ xcheck_add_c_compiler_flag(-Wno-sign-compare)
3737
xcheck_add_c_compiler_flag(-Wno-missing-field-initializers)
3838
xcheck_add_c_compiler_flag(-Wno-unused-parameter)
3939
xcheck_add_c_compiler_flag(-Wno-unused-but-set-variable)
40+
xcheck_add_c_compiler_flag(-Wno-unused-result)
41+
xcheck_add_c_compiler_flag(-Wno-stringop-truncation)
4042
xcheck_add_c_compiler_flag(-Wno-array-bounds)
4143
xcheck_add_c_compiler_flag(-funsigned-char)
4244

quickjs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7391,9 +7391,9 @@ static JSValue JS_GetPropertyInternal(JSContext *ctx, JSValue obj,
73917391
JSObject *p;
73927392
JSProperty *pr;
73937393
JSShapeProperty *prs;
7394-
uint32_t tag, offset, proto_depth;
7394+
uint32_t tag, proto_depth;
73957395

7396-
offset = proto_depth = 0;
7396+
proto_depth = 0;
73977397
tag = JS_VALUE_GET_TAG(obj);
73987398
if (unlikely(tag != JS_TAG_OBJECT)) {
73997399
switch(tag) {

0 commit comments

Comments
 (0)