diff --git a/src/codeobject.h b/src/codeobject.h index c562db08..2d0c00c3 100644 --- a/src/codeobject.h +++ b/src/codeobject.h @@ -71,7 +71,6 @@ struct CodeObject { } void __enter_block(CodeBlockType type){ - const CodeBlock& currBlock = blocks[_curr_block_i]; blocks.push_back(CodeBlock{type, _curr_block_i, (int)co_code.size()}); _curr_block_i = blocks.size()-1; } diff --git a/src/pocketpy.h b/src/pocketpy.h index 41cec47d..3f5245ce 100644 --- a/src/pocketpy.h +++ b/src/pocketpy.h @@ -360,7 +360,7 @@ void __initializeBuiltinFunctions(VM* _vm) { _vm->bindMethod<1>("str", "join", [](VM* vm, const pkpy::Args& args) { const _Str& _self = vm->PyStr_AS_C(args[0]); - PyVarList* _list; + PyVarList* _list = nullptr; if(args[1]->is_type(vm->_tp_list)){ _list = &vm->PyList_AS_C(args[1]); }else if(args[1]->is_type(vm->_tp_tuple)){