On Fri, Mar 08, 2024 at 07:36:17AM +0000, Homam Alkhateeb wrote: > Is there a way to do this without changing the code? No. Your system ABI requires what underlying type to use for an enum. There would be terrible problems if a compiler could just choose to use different types willy-nilly! Segher