Skip to content

Compilation error on GCC 12.2.0 (cross compile to arm) #163

@cscd98

Description

@cscd98
src/emu/validity.c: At global scope:
src/emu/validity.c:33:57: warning: narrowing conversion of ‘-3’ from ‘int’ to ‘unsigned int’ is ill-formed in C++11 [-Wnarrowing]
   33 | UINT8 your_ptr64_flag_is_wrong[(int)(sizeof(void *) - 7)];
      |                                                         ^
src/emu/validity.c:33:32: error: size ‘-3’ of array ‘your_ptr64_flag_is_wrong’ is negative
   33 | UINT8 your_ptr64_flag_is_wrong[(int)(sizeof(void *) - 7)];
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions