From b058becb925f480962f0dc23c307528f5f21838f Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Tue, 3 Dec 2024 04:30:20 +0000 Subject: Fix errors with clang --- obc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/obc.c b/obc.c index 227f980..3d9cd0d 100644 --- a/obc.c +++ b/obc.c @@ -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) { -- cgit v1.2.3-13-gbd6f