https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104205
--- Comment #3 from Stephen Wassell <stephen.wassell at sophos dot com> --- Thank you for the response! I think the cause of our confusion was that we were focusing on "constant" in the warning message rather than "integer". Our original code had a few layers of macros so the signed overflow wasn't obvious at first.