On ARM enum size is always the smallest possible, according to declared values
https://developer.arm.com/documentation/dui0472/m/chr1360775115791
if you want to have all enums stay at int size, you have to use a compiler option like --enum_is_int
, not sure which option is equivalent in GCC.