fix warning

This commit is contained in:
lyon 2022-05-13 22:31:45 +08:00
parent 61cdd46fb8
commit 2ba196e5ae

View File

@ -412,6 +412,7 @@ int pikaMaker_getDependencies(PikaMaker* self, char* module_name) {
module_path = strsAppend(&buffs, module_path, module_name); module_path = strsAppend(&buffs, module_path, module_name);
char* file_path = strsAppend(&buffs, module_path, ".py.o"); char* file_path = strsAppend(&buffs, module_path, ".py.o");
Arg* file_arg = arg_loadFile(NULL, file_path); Arg* file_arg = arg_loadFile(NULL, file_path);
uint8_t offset_befor = 0;
if (NULL == file_arg) { if (NULL == file_arg) {
res = 1; res = 1;
goto exit; goto exit;
@ -420,7 +421,7 @@ int pikaMaker_getDependencies(PikaMaker* self, char* module_name) {
ConstPool* const_pool = &bf.const_pool; ConstPool* const_pool = &bf.const_pool;
InstructArray* ins_array = &bf.instruct_array; InstructArray* ins_array = &bf.instruct_array;
uint16_t offset_befor = ins_array->content_offset_now; offset_befor = ins_array->content_offset_now;
ins_array->content_offset_now = 0; ins_array->content_offset_now = 0;
while (1) { while (1) {
InstructUnit* ins_unit = instructArray_getNow(ins_array); InstructUnit* ins_unit = instructArray_getNow(ins_array);