Re: gcc 13.2 is missing warnings?

2023-10-19 Thread Eric Sokolowsky via Gcc
he warnings with -pedantic. > > Martin > > Am Donnerstag, dem 19.10.2023 um 07:39 -0400 schrieb Eric Sokolowsky via Gcc: > > I am using gcc 13.2 on Fedora 38. Consider the following program. > > > > #include > > int main(int argc, char **argv) > &

gcc 13.2 is missing warnings?

2023-10-19 Thread Eric Sokolowsky via Gcc
I am using gcc 13.2 on Fedora 38. Consider the following program. #include int main(int argc, char **argv) { printf("Enter a number: "); int num = 0; scanf("%d", &num); switch (num) { case 1: int a = num + 3; printf("The new number is %d.\n", a); b