Fix errors with clang

This commit is contained in:
2024-12-03 04:30:20 +00:00
parent e778f818c2
commit b058becb92

8
obc.c
View File

@@ -70,6 +70,10 @@ int main(int argc, char *argv[])
return 1;
}
char *file_data = NULL;
buffer_t *buffer = NULL, *asm_buffer = NULL;
struct PResult res = {0};
struct Config config = {0};
int ret = parse_config(&config, argc, argv);
if (!ret)
@@ -79,10 +83,6 @@ int main(int argc, char *argv[])
}
ret = 0;
char *file_data = NULL;
buffer_t *buffer = NULL, *asm_buffer = NULL;
struct PResult res = {0};
FILE *handle = fopen(config.prog_name, "r");
if (!handle)
{