src/asustrx.c: In function 'parse_options':
src/asustrx.c:135:23: warning: format '%hu' expects argument of type 'short unsigned int *', but argument 3 has type 'uint8_t * {aka unsigned char *}' [-Wformat=]
    if (sscanf(optarg, "%hu.%hu.%hu.%hu", &version[0], &version[1], &version[2], &version[3]) != 4)
                       ^
src/asustrx.c:135:23: warning: format '%hu' expects argument of type 'short unsigned int *', but argument 4 has type 'uint8_t * {aka unsigned char *}' [-Wformat=]
src/asustrx.c:135:23: warning: format '%hu' expects argument of type 'short unsigned int *', but argument 5 has type 'uint8_t * {aka unsigned char *}' [-Wformat=]
src/asustrx.c:135:23: warning: format '%hu' expects argument of type 'short unsigned int *', but argument 6 has type 'uint8_t * {aka unsigned char *}' [-Wformat=]
src/mkmylofw.c: In function 'get_file_crc':
src/mkmylofw.c:399:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
   fread(buf, readlen, 1, f);
   ^
src/mkmylofw.c: In function 'write_out_file':
src/mkmylofw.c:569:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
   fread(buff, buflen, 1, f);
   ^
src/mkcsysimg.c: In function 'block_writeout_file':
src/mkcsysimg.c:619:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
   fread(buf, buflen, 1, f);
   ^
src/mkzynfw.c: In function 'read_magic':
src/mkzynfw.c:668:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
  fread(magic, 2, 1, f);
  ^
src/mkzynfw.c: In function 'write_out_file':
src/mkzynfw.c:707:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
   fread(buf, buflen, 1, f);
   ^
src/mkcasfw.c: In function 'image_writeout_file':
src/mkcasfw.c:669:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
   fread(buf, buflen, 1, f);
   ^
src/nand_ecc.c: In function 'main':
src/nand_ecc.c:191:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
   write(outfd, page_data, page_size + oob_size);
   ^
src/mkplanexfw.c: In function 'main':
src/mkplanexfw.c:224:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
  fread(buf +  sizeof(*hdr), st.st_size, 1, infile);
  ^
src/mktplinkfw.c: In function 'read_to_buf':
src/mktplinkfw.c:325:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
  fread(buf, fdata->file_size, 1, f);
  ^
src/mktplinkfw2.c: In function 'read_to_buf':
src/mktplinkfw2.c:349:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
  fread(buf, fdata->file_size, 1, f);
  ^
src/mktplinkfw-kernel.c: In function 'read_to_buf':
src/mktplinkfw-kernel.c:159:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
  fread(buf, fdata->file_size, 1, f);
  ^
src/pc1crypt.c: In function 'main':
src/pc1crypt.c:319:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
   fread(buf, datalen, 1, infile);
   ^
src/osbridge-crc.c: In function 'main':
src/osbridge-crc.c:142:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
  fread(buf, buflen, 1, infile);
  ^
src/wrt400n.c: In function 'main':
src/wrt400n.c:312:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
  write(outfd, buf, totalsize);
  ^
src/mkdniimg.c: In function 'main':
src/mkdniimg.c:163:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
  fread(buf +  DNI_HDR_LEN, st.st_size, 1, infile);
  ^
src/mktitanimg.c: In function 'main':
src/mktitanimg.c:408:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
   fread((void*)&head, sizeof(struct nsp_img_hdr_head),
   ^
src/mktitanimg.c:416:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
   fread((void*)hdr, head.hdr_size, 1, nsp_image);
   ^
src/mktitanimg.c:445:3: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
   fread(img_buf, 1, len, nsp_image);
   ^
src/mktitanimg.c: In function 'cs_is_tagged':
src/mktitanimg.c:525:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
  fread(buf, 8, 1, fp);
  ^
src/mktitanimg.c: In function 'cs_read_sum':
src/mktitanimg.c:536:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
  fread(buf, 8, 1, fp);
  ^
src/mktitanimg.c: In function 'cs_get_sum':
src/mktitanimg.c:639:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
  fread(&magic, 4, 1, fp);
  ^
src/mktitanimg.c:640:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
  fread(sum, 4, 1, fp);
  ^
src/mkzcfw.c: In function 'read_to_buf':
src/mkzcfw.c:176:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
  fread(buf, fdata->file_size, 1, f);
  ^
src/buffalo-enc.c: In function 'main':
src/buffalo-enc.c:159:3: warning: 'tail_len' may be used uninitialized in this function [-Wmaybe-uninitialized]
   memmove(&buf[tail_dst], &buf[tail_src], tail_len);
   ^
src/buffalo-enc.c:123:29: note: 'tail_len' was declared here
  ssize_t src_len, tail_dst, tail_len, tail_src;
                             ^
src/buffalo-enc.c:160:38: warning: 'tail_dst' may be used uninitialized in this function [-Wmaybe-uninitialized]
   memset(&buf[tail_src], 0, tail_dst - tail_src);
                                      ^
src/buffalo-enc.c:123:19: note: 'tail_dst' was declared here
  ssize_t src_len, tail_dst, tail_len, tail_src;
                   ^
src/mkwrgimg.c: In function 'get_digest':
src/mkwrgimg.c:103:12: warning: pointer targets in passing argument 1 of 'MD5_Final' differ in signedness [-Wpointer-sign]
  MD5_Final(header->digest, &ctx);
            ^
In file included from src/mkwrgimg.c:21:0:
src/md5.h:43:13: note: expected 'unsigned char *' but argument is of type 'char *'
 extern void MD5_Final(unsigned char *result, MD5_CTX *ctx);
             ^
src/mkwrgimg.c: In function 'main':
src/mkwrgimg.c:195:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
  fread(buf + sizeof(struct wrg_header), st.st_size, 1, infile);
  ^
src/mkwrggimg.c: In function 'get_digest':
src/mkwrggimg.c:117:12: warning: pointer targets in passing argument 1 of 'MD5_Final' differ in signedness [-Wpointer-sign]
  MD5_Final(header->digest, &ctx);
            ^
In file included from src/mkwrggimg.c:23:0:
src/md5.h:43:13: note: expected 'unsigned char *' but argument is of type 'char *'
 extern void MD5_Final(unsigned char *result, MD5_CTX *ctx);
             ^
src/mkwrggimg.c: In function 'main':
src/mkwrggimg.c:233:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
  fread(buf + sizeof(struct wrgg03_header), st.st_size, 1, infile);
  ^
src/mkbrnimg.c: In function 'main':
src/mkbrnimg.c:185:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
  write(outfd, signature, strlen(signature)+1);
  ^
src/mkbrnimg.c: In function 'appendfile':
src/mkbrnimg.c:141:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
  write(outfd, input_file, len);
  ^
src/mkbrnimg.c:146:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
  write(outfd, padding, padded_len - len);
  ^
src/mkbrnimg.c:161:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
  write(outfd, footer, sizeof(footer));
  ^
src/mkdapimg.c: In function 'main':
src/mkdapimg.c:162:7: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
   if (fread(&imghdr, sizeof(imghdr), 1, ifile) < 0)
       ^
src/mkcameofw.c: In function 'read_to_buf':
src/mkcameofw.c:157:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
  fread(buf, fdata->file_size, 1, f);
  ^
src/seama.c: In function 'extract_file':
src/seama.c:453:4: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
    fread(&shdr, sizeof(shdr), 1, ifh);
    ^
src/seama.c:469:4: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
    fread(buf, sizeof(char), 16, ifh);
    ^
src/seama.c:473:5: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
     fread(buf, sizeof(char), msize, ifh);
     ^
src/fix-u-media-header.c: In function 'read_to_buf':
src/fix-u-media-header.c:170:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
  fread(buf, fdata->file_size, 1, f);
  ^
src/hcsmakeimage.c: In function 'main':
src/hcsmakeimage.c:163:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
  fread ( filebuffer, 1, buf.st_size,fd );
  ^
src/bcmalgo.c: In function 'get_file_crc':
src/bcmalgo.c:86:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
  fread ( filebuffer, 1, buf.st_size,fd );
  ^
src/mkporayfw.c: In function 'read_to_buf':
src/mkporayfw.c:376:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
  fread(buf, fdata->file_size, 1, f);
  ^
src/mkhilinkfw.c: In function 'copy_file':
src/mkhilinkfw.c:281:9: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
         write(dst, buf, size);
         ^
src/mkdcs932.c: In function 'main':
src/mkdcs932.c:28:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
  write(fd, &t, 4);
  ^
src/mkdcs932.c:35:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
  write(fd, &sum, 4);
  ^
src/mkrtn56uimg.c: In function 'process_image':
src/mkrtn56uimg.c:212:3: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result]
   ftruncate(fd, offset_image_end);
   ^
src/mkrtn56uimg.c:246:2: warning: ignoring return value of 'ftruncate', declared with attribute warn_unused_result [-Wunused-result]
  ftruncate(fd, offset_image_end);
  ^
src/edimax_fw_header.c: In function 'read_to_buf':
src/edimax_fw_header.c:164:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
  fread(buf, buflen, 1, f);
  ^
src/mkmerakifw.c: In function 'main':
src/mkmerakifw.c:273:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
  fread(kernel, klen, 1, in);
  ^
src/mkmerakifw-old.c: In function 'meraki_build_hdr':
src/mkmerakifw-old.c:257:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
  fread(kernel, klen, 1, in);
  ^
src/mkbuffaloimg.c: In function 'main':
src/mkbuffaloimg.c:179:2: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
  fread(buf +  DNI_HDR_LEN, st.st_size, 1, infile);
  ^
src/zyimage.c:10:0: warning: "_POSIX_SOURCE" redefined
 #define _POSIX_SOURCE
 ^
In file included from /usr/include/byteswap.h:21:0,
                 from /home/bastian/ledebot/source/staging_dir/host/include/byteswap.h:2,
                 from /home/bastian/ledebot/source/staging_dir/host/include/endian.h:5,
                 from <command-line>:1:
/usr/include/features.h:226:0: note: this is the location of the previous definition
 # define _POSIX_SOURCE 1
 ^
src/zyimage.c:11:0: warning: "_POSIX_C_SOURCE" redefined
 #define _POSIX_C_SOURCE 199309L /* getopt */
 ^
In file included from /usr/include/byteswap.h:21:0,
                 from /home/bastian/ledebot/source/staging_dir/host/include/byteswap.h:2,
                 from /home/bastian/ledebot/source/staging_dir/host/include/endian.h:5,
                 from <command-line>:1:
/usr/include/features.h:228:0: note: this is the location of the previous definition
 # define _POSIX_C_SOURCE 200809L
 ^
src/zyimage.c: In function 'main':
src/zyimage.c:132:5: warning: ignoring return value of 'fread', declared with attribute warn_unused_result [-Wunused-result]
     fread(&oldsign, sizeof(oldsign), 1, f);
     ^
src/mkdhpimg.c: In function 'main':
src/mkdhpimg.c:68:2: warning: ignoring return value of 'read', declared with attribute warn_unused_result [-Wunused-result]
  read(in, &buf[DHP_HEADER_SIZE], in_st.st_size);
  ^
src/mkdhpimg.c:79:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
  write(out, buf, size);
  ^
