https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99945
--- Comment #3 from Vincent Lefèvre <vincent-gcc at vinc17 dot net> --- Note that with gcc-10 (Debian 10.2.1-6) 10.2.1 20210110, I get the same behavior. But with gcc-9 (Debian 9.3.0-22) 9.3.0, the warning is missing in the 4 cases.