Skip to content

App file-data-gex.c fix incompatible pointer type

lillolollo requested to merge (removed):patch-1 into master

Fix warning

../app/file-data/file-data-gex.c:258:79: warning: passing argument 4 of 'archive_read_data_block' from incompatible pointer type [-Wincompatible-pointer-types]
  258 |                               r = archive_read_data_block (a, &buffer, &size, &offset);
      |                                                                               ^~~~~~~
      |                                                                               |
      |                                                                               off_t * {aka long int *}
In file included from ../app/file-data/file-data-gex.c:22:
C:/msys64/mingw64/include/archive.h:602:52: note: expected 'la_int64_t *' {aka 'long long int *'} but argument is of type 'off_t *' {aka 'long int *'}
  602 |       const void **buff, size_t *size, la_int64_t *offset);
      |                                        ~~~~~~~~~~~~^~~~~~
../app/file-data/file-data-gex.c: In function 'file_gex_decompress':
../app/file-data/file-data-gex.c:417:71: warning: passing argument 4 of 'archive_read_data_block' from incompatible pointer type [-Wincompatible-pointer-types]
  417 |                       r = archive_read_data_block (a, &buffer, &size, &offset);
      |                                                                       ^~~~~~~
      |                                                                       |
      |                                                                       off_t * {aka long int *}
In file included from ../app/file-data/file-data-gex.c:22:
C:/msys64/mingw64/include/archive.h:602:52: note: expected 'la_int64_t *' {aka 'long long int *'} but argument is of type 'off_t *' {aka 'long int *'}
  602 |       const void **buff, size_t *size, la_int64_t *offset);
      |                                        ~~~~~~~~~~~~^~~~~~

Merge request reports

Loading