firmware-utils: fix unused variable warnings
[openwrt/openwrt.git] / tools / firmware-utils / src / mkzcfw.c
index 2326f1ff5c5a4b4925446712f52720116c2d6bf6..e21504e26603629c87f9a9cb62248ca913c103b9 100644 (file)
@@ -127,7 +127,6 @@ static struct board_info *find_board(char *id)
 static void usage(int status)
 {
        FILE *stream = (status != EXIT_SUCCESS) ? stderr : stdout;
-       struct board_info *board;
 
        fprintf(stream, "Usage: %s [OPTIONS...]\n", progname);
        fprintf(stream,
@@ -276,8 +275,6 @@ static int build_fw(void)
        char *buf;
        char *p;
        int ret = EXIT_FAILURE;
-       int writelen = 0;
-       uint32_t crc;
        struct fw_header *hdr;
        struct fw_tail *tail;
 
@@ -361,11 +358,6 @@ static int build_fw(void)
 int main(int argc, char *argv[])
 {
        int ret = EXIT_FAILURE;
-       int err;
-
-       FILE *outfile;
-
-       progname = basename(argv[0]);
 
        while ( 1 ) {
                int c;