https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107890
Eric Gallager <egallager at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |egallager at gcc dot gnu.org Keywords| |diagnostic --- Comment #5 from Eric Gallager <egallager at gcc dot gnu.org> --- What I wonder is, why doesn't -Wstrict-overflow=5 catch this? That's supposed to be its strictest level, right? $ /usr/local/bin/gcc -Wall -Wextra -pedantic -Wstrict-overflow=5 -O2 107890.c 107890.c: In function 'f': 107890.c:13:25: warning: comparison of integer expressions of different signedness: 'int32_t' {aka 'int'} and 'long unsigned int' [-Wsign-compare] 13 | if (i >= 0 && i < sizeof(tab)) { | ^ 107890.c: In function 'main': 107890.c:21:18: warning: unused parameter 'ac' [-Wunused-parameter] 21 | int main(int ac, char **av) | ~~~~^~ $