https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104901
Segher Boessenkool <segher at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |segher at gcc dot gnu.org --- Comment #4 from Segher Boessenkool <segher at gcc dot gnu.org> --- Yes, the code is correct as written. There are many ways to avoid this warning of course (and the warning is too smart for its own good, imnsho -- if it read "__alignment == 16 && __alignment == 16" that would be a different thing, but as-is this just invites us to write less clear (i.e, worse!) code to avoid the warning. On the other hand. Paul, is this micro-optimisation useful at all, don't posix_memalign and malloc end up the same under the covers anyway?