diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2021-04-09 07:38:46 +0200 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2021-04-09 10:46:15 +0200 |
commit | 7c01e2bac1c2df1e10658b81e903fbd687c1a56b (patch) | |
tree | a39b400e7e2a6f26ef27ecd1368618e1aee4a979 /tools/firmware-utils/src/mktitanimg.c | |
parent | e65b633a5b86928a00c5fe3b691144b351fe32cd (diff) | |
download | upstream-7c01e2bac1c2df1e10658b81e903fbd687c1a56b.tar.gz upstream-7c01e2bac1c2df1e10658b81e903fbd687c1a56b.tar.bz2 upstream-7c01e2bac1c2df1e10658b81e903fbd687c1a56b.zip |
firmware-utils: fix unused variable warnings
This fixes warnings from the:
1. -Wunused-variable
2. -Wunused-but-set-variable
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'tools/firmware-utils/src/mktitanimg.c')
-rw-r--r-- | tools/firmware-utils/src/mktitanimg.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tools/firmware-utils/src/mktitanimg.c b/tools/firmware-utils/src/mktitanimg.c index 120d08f0c4..6f2b27a1f6 100644 --- a/tools/firmware-utils/src/mktitanimg.c +++ b/tools/firmware-utils/src/mktitanimg.c @@ -40,7 +40,6 @@ void print_help(void) void mknspimg_print_hdr(struct nsp_img_hdr *hdr) { struct nsp_img_hdr_chksum *chksum; - struct nsp_img_hdr_section_info *sect_info; struct nsp_img_hdr_sections *section; int i; @@ -118,14 +117,11 @@ int main(int argc, char* argv[], char* env[]) int cmdline_err; char* cmdline_error_msg; - char* filen_kernel; - char* filen_files; char* filen_out; int i,count; /* loop variables */ int num_sects = 2; /* We require exactly two image with -i option (see CMDLINE_CFG structure above) */ - int desc_count=0; int total = 0; int header_size=0; @@ -158,8 +154,6 @@ int main(int argc, char* argv[], char* env[]) header_version=atoi(argv[cmdline_getarg(cmdline_getarg_list('h'),0)]); } /* Set up arguments */ - filen_kernel = argv[cmdline_getarg(cmdline_getarg_list('i'),0)]; - filen_files = argv[cmdline_getarg(cmdline_getarg_list('i'),1)]; filen_out = argv[cmdline_getarg(cmdline_getarg_list('o'),0)]; /* Command line arguments have been parsed. Start doing our work. */ |