dcraw.c: In function ‘get2’:
dcraw.c:306:3: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  306 |   fread (str, 1, 2, ifp);
      |   ^~~~~~~~~~~~~~~~~~~~~~
dcraw.c: In function ‘get4’:
dcraw.c:322:3: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  322 |   fread (str, 1, 4, ifp);
      |   ^~~~~~~~~~~~~~~~~~~~~~
dcraw.c: In function ‘canon_has_lowbits’:
dcraw.c:745:3: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  745 |   fread (test, 1, sizeof test, ifp);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c: In function ‘ljpeg_start’:
dcraw.c:828:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  828 |     fread (data, 1, len, ifp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c: In function ‘nikon_e2100’:
dcraw.c:1297:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1297 |     fread (t, 1, 12, ifp);
      |     ^~~~~~~~~~~~~~~~~~~~~
dcraw.c: In function ‘nikon_3700’:
dcraw.c:1319:3: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1319 |   fread (dp, 1, 24, ifp);
      |   ^~~~~~~~~~~~~~~~~~~~~~
dcraw.c: In function ‘minolta_z2’:
dcraw.c:1337:3: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1337 |   fread (tail, 1, sizeof tail, ifp);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c: In function ‘ppm_thumb’:
dcraw.c:1352:3: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1352 |   fread  (thumb, 1, thumb_length, ifp);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c: In function ‘layer_thumb’:
dcraw.c:1383:3: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 1383 |   fread (thumb, thumb_length, colors, ifp);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c: In function ‘pana_bits’:
dcraw.c:2014:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2014 |     fread (buf+load_flags, 1, 0x4000-load_flags, ifp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c:2015:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2015 |     fread (buf, 1, load_flags, ifp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c: In function ‘sony_load_raw’:
dcraw.c:2688:3: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2688 |   fread (head, 1, 40, ifp);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c: In function ‘sony_arw2_load_raw’:
dcraw.c:2732:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 2732 |     fread (data, 1, raw_width, ifp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c: In function ‘foveon_thumb’:
dcraw.c:3094:7: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 3094 |       fread  (buf, 1, bwide, ifp);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c: In function ‘foveon_load_camf’:
dcraw.c:3200:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 3200 |     fread (meta_data, 1, meta_length, ifp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c: In function ‘subtract’:
dcraw.c:3932:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 3932 |     fread (pixel, 2, width, fp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c: In function ‘parse_makernote’:
dcraw.c:5198:3: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5198 |   fread (buf, 1, 10, ifp);
      |   ^~~~~~~~~~~~~~~~~~~~~~~
dcraw.c:5275:7: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5275 |       fgets (model2, 64, ifp);
      |       ^~~~~~~~~~~~~~~~~~~~~~~
dcraw.c:5279:7: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5279 |       fread (artist, 64, 1, ifp);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c:5300:7: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5300 |       fread (buf, 1, 10, ifp);
      |       ^~~~~~~~~~~~~~~~~~~~~~~
dcraw.c:5309:7: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5309 |       fread (model, 64, 1, ifp);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c:5361:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5361 |         fread (buf97, 324, 1, ifp);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c: In function ‘get_timestamp’:
dcraw.c:5481:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5481 |     fread (str, 19, 1, ifp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
dcraw.c: In function ‘parse_gps’:
dcraw.c:5541:9: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5541 |         fgets ((char *) (gpsdata+14+tag/3), MIN(len,12), ifp);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c: In function ‘parse_mos’:
dcraw.c:5577:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5577 |     fread (data, 1, 40, ifp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c:5589:7: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5589 |       fscanf (ifp, "%d", &i);
      |       ^~~~~~~~~~~~~~~~~~~~~~
dcraw.c:5600:9: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5600 |         fscanf (ifp, "%f", (float *)romm_cam + i);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c:5604:7: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5604 |       fscanf (ifp, "%d", &planes);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c:5606:7: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5606 |       fscanf (ifp, "%d", &flip);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c:5609:9: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5609 |         fscanf (ifp, "%d", &i);
      |         ^~~~~~~~~~~~~~~~~~~~~~
dcraw.c:5613:7: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5613 |       fscanf (ifp, "%d", &i);
      |       ^~~~~~~~~~~~~~~~~~~~~~
dcraw.c:5617:13: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5617 |       FORC4 fscanf (ifp, "%d", neut+c);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c: In function ‘parse_tiff_ifd’:
dcraw.c:5763:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5763 |         fread (desc, 512, 1, ifp);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c:5766:9: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5766 |         fgets (make, 64, ifp);
      |         ^~~~~~~~~~~~~~~~~~~~~
dcraw.c:5769:9: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5769 |         fgets (model, 64, ifp);
      |         ^~~~~~~~~~~~~~~~~~~~~~
dcraw.c:5814:9: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5814 |         fgets (software, 64, ifp);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c:5827:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5827 |         fread (artist, 64, 1, ifp);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c:5883:9: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5883 |         fgets (model2, 64, ifp);
      |         ^~~~~~~~~~~~~~~~~~~~~~~
dcraw.c:5896:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5896 |         fread (cfa_pat, 1, plen, ifp);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c:5919:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5919 |         fread (software, 1, 7, ifp);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c:5923:17: warning: ignoring return value of ‘fscanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 5923 |           FORC4 fscanf (ifp, "%f", &rgb_cam[i][c^1]);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c:6013:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 6013 |         fread (cbuf, 1, len, ifp);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c:6040:9: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 6040 |         fgets (make, 64, ifp);
      |         ^~~~~~~~~~~~~~~~~~~~~
dcraw.c:6050:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 6050 |         fread (cfa_pc, 1, colors, ifp);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c:6148:24: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 6148 |         if (type == 2) fgets (model2, 64, ifp);
      |                        ^~~~~~~~~~~~~~~~~~~~~~~
dcraw.c:6154:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 6154 |     fread (buf, sony_length, 1, ifp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c: In function ‘parse_ciff’:
dcraw.c:6496:7: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 6496 |       fread (artist, 64, 1, ifp);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c:6498:7: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 6498 |       fread (make, 64, 1, ifp);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c:6500:7: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 6500 |       fread (model, 64, 1, ifp);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c: In function ‘parse_rollei’:
dcraw.c:6591:5: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 6591 |     fgets (line, 128, ifp);
      |     ^~~~~~~~~~~~~~~~~~~~~~
dcraw.c: In function ‘parse_sinar_ia’:
dcraw.c:6632:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 6632 |     fread (str, 8, 1, ifp);
      |     ^~~~~~~~~~~~~~~~~~~~~~
dcraw.c:6638:3: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 6638 |   fread (make, 64, 1, ifp);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c: In function ‘parse_phase_one’:
dcraw.c:6704:9: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 6704 |         fread (model, 1, 63, ifp);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c: In function ‘parse_riff’:
dcraw.c:6796:3: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 6796 |   fread (tag, 4, 1, ifp);
      |   ^~~~~~~~~~~~~~~~~~~~~~
dcraw.c:6812:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 6812 |     fread (date, 64, 1, ifp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c: In function ‘parse_qt’:
dcraw.c:6902:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 6902 |     fread (tag, 4, 1, ifp);
      |     ^~~~~~~~~~~~~~~~~~~~~~
dcraw.c: In function ‘guess_byte_order’:
dcraw.c:8307:3: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 8307 |   fread (test[0], 2, 2, ifp);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c:8309:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 8309 |     fread (test[t], 2, 1, ifp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c: In function ‘identify’:
dcraw.c:8662:3: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 8662 |   fread (head, 1, 32, ifp);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c:8733:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 8733 |     fread (make, 1, 8, ifp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
dcraw.c:8734:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 8734 |     fread (model, 1, 8, ifp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c:8735:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 8735 |     fread (model2, 1, 16, ifp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c:8764:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 8764 |     fread (model, 1, 64, ifp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c:8772:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 8772 |     fread (make, 1, 41, ifp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c:8776:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 8776 |     fread (model, 1, 30, ifp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c: In function ‘apply_profile’:
dcraw.c:9665:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 9665 |     fread (prof, 1, profile_length, ifp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c:9674:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 9674 |     fread (&size, 4, 1, fp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
dcraw.c:9678:5: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
 9678 |     fread (oprof, 1, size, fp);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c: In function ‘jpeg_thumb’:
dcraw.c:10020:3: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
10020 |   fread (thumb, 1, thumb_length, ifp);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c: In function ‘main’:
dcraw.c:10394:7: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
10394 |       fread (raw_image, 2, raw_height*raw_width, stdin);
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/string.h:535,
                 from dcraw.c:41:
In function ‘memcpy’,
    inlined from ‘foveon_interpolate’ at dcraw.c:3454:3:
/usr/include/bits/string_fortified.h:29:10: warning: ‘__builtin_memcpy’ writing 132 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=]
   29 |   return __builtin___memcpy_chk (__dest, __src, __len,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   30 |                                  __glibc_objsize0 (__dest));
      |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~
dcraw.c: In function ‘foveon_interpolate’:
dcraw.c:3443:26: note: at offset -132 into destination object of size [0, 786420] allocated by ‘calloc’
 3443 |   black = (float (*)[3]) calloc (height, sizeof *black);
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~