https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101964
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- <source>:6:13: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=] 6 | scanf("%d", x); | ~^ ~ | | | | | int | int* <source>:6:10: warning: 'x' is used uninitialized [-Wuninitialized] 6 | scanf("%d", x); | ~~~~~^~~~~~~~~