https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107699
--- Comment #5 from Carlos Galvez <carlosgalvezp at gmail dot com> --- > is not good programming practice. Sure. In the real world, we have asserts for this. However this is a problem when we build for Release mode, in which asserts are disabled and thus this warning pops up.