Skip to content

off_t type not consistent across target systems #47

@elf-alchemist

Description

@elf-alchemist
 /Users/runner/work/elfbsp/elfbsp/src/wad.cpp:153:61: warning: format specifies type 'size_t' (aka 'unsigned long') but the argument has type 'off_t' (aka 'long long') [-Wformat]
  153 |     PrintLine(LOG_DEBUG, "[%s] total_size = %zu", __func__, w->total_size);
      |                                             ~~~             ^~~~~~~~~~~~~
      |                                             %lld
/Users/runner/work/elfbsp/elfbsp/src/wad.cpp:977:86: warning: format specifies type 'size_t' (aka 'unsigned long') but the argument has type 'off_t' (aka 'long long') [-Wformat]
  977 |     PrintLine(LOG_DEBUG, "[%s] POSITION FOR WRITE: %zu  (total_size %zu)", __func__, want_pos, total_size);
      |                                                    ~~~                               ^~~~~~~~
      |                                                    %lld
/Users/runner/work/elfbsp/elfbsp/src/wad.cpp:977:96: warning: format specifies type 'size_t' (aka 'unsigned long') but the argument has type 'off_t' (aka 'long long') [-Wformat]
  977 |     PrintLine(LOG_DEBUG, "[%s] POSITION FOR WRITE: %zu  (total_size %zu)", __func__, want_pos, total_size);
      |                                                                     ~~~                        ^~~~~~~~~~
      |                                                                     %lld
/Users/runner/work/elfbsp/elfbsp/src/wad.cpp:1059:60: warning: format specifies type 'size_t' (aka 'unsigned long') but the argument has type 'off_t' (aka 'long long') [-Wformat]
 1059 |     PrintLine(LOG_DEBUG, "[%s] total_size: %zu", __func__, total_size);
      |                                            ~~~             ^~~~~~~~~~
      |                                            %lld
4 warnings generated.
/Users/runner/work/elfbsp/elfbsp/src/wad.cpp:153:61: warning: format specifies type 'size_t' (aka 'unsigned long') but the argument has type 'off_t' (aka 'long long') [-Wformat]
  153 |     PrintLine(LOG_DEBUG, "[%s] total_size = %zu", __func__, w->total_size);
      |                                             ~~~             ^~~~~~~~~~~~~
      |                                             %lld
/Users/runner/work/elfbsp/elfbsp/src/wad.cpp:977:86: warning: format specifies type 'size_t' (aka 'unsigned long') but the argument has type 'off_t' (aka 'long long') [-Wformat]
  977 |     PrintLine(LOG_DEBUG, "[%s] POSITION FOR WRITE: %zu  (total_size %zu)", __func__, want_pos, total_size);
      |                                                    ~~~                               ^~~~~~~~
      |                                                    %lld
/Users/runner/work/elfbsp/elfbsp/src/wad.cpp:977:96: warning: format specifies type 'size_t' (aka 'unsigned long') but the argument has type 'off_t' (aka 'long long') [-Wformat]
  977 |     PrintLine(LOG_DEBUG, "[%s] POSITION FOR WRITE: %zu  (total_size %zu)", __func__, want_pos, total_size);
      |                                                                     ~~~                        ^~~~~~~~~~
      |                                                                     %lld
/Users/runner/work/elfbsp/elfbsp/src/wad.cpp:1059:60: warning: format specifies type 'size_t' (aka 'unsigned long') but the argument has type 'off_t' (aka 'long long') [-Wformat]
 1059 |     PrintLine(LOG_DEBUG, "[%s] total_size: %zu", __func__, total_size);
      |                                            ~~~             ^~~~~~~~~~
      |                                            %lld
4 warnings generated.
D:/a/elfbsp/elfbsp/src/wad.cpp:153:61: warning: format specifies type 'size_t' (aka 'unsigned long long') but the argument has type 'off_t' (aka 'long') [-Wformat]
  153 |     PrintLine(LOG_DEBUG, "[%s] total_size = %zu", __func__, w->total_size);
      |                                             ~~~             ^~~~~~~~~~~~~
      |                                             %ld
D:/a/elfbsp/elfbsp/src/wad.cpp:977:86: warning: format specifies type 'size_t' (aka 'unsigned long long') but the argument has type 'off_t' (aka 'long') [-Wformat]
  977 |     PrintLine(LOG_DEBUG, "[%s] POSITION FOR WRITE: %zu  (total_size %zu)", __func__, want_pos, total_size);
      |                                                    ~~~                               ^~~~~~~~
      |                                                    %ld
D:/a/elfbsp/elfbsp/src/wad.cpp:977:96: warning: format specifies type 'size_t' (aka 'unsigned long long') but the argument has type 'off_t' (aka 'long') [-Wformat]
  977 |     PrintLine(LOG_DEBUG, "[%s] POSITION FOR WRITE: %zu  (total_size %zu)", __func__, want_pos, total_size);
      |                                                                     ~~~                        ^~~~~~~~~~
      |                                                                     %ld
D:/a/elfbsp/elfbsp/src/wad.cpp:1059:60: warning: format specifies type 'size_t' (aka 'unsigned long long') but the argument has type 'off_t' (aka 'long') [-Wformat]
 1059 |     PrintLine(LOG_DEBUG, "[%s] total_size: %zu", __func__, total_size);
      |                                            ~~~             ^~~~~~~~~~
      |                                            %ld
4 warnings generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions