https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90205
Eric Gallager <egallager at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |egallager at gcc dot gnu.org --- Comment #7 from Eric Gallager <egallager at gcc dot gnu.org> --- (In reply to Jonny Grant from comment #6) > Wondering if it is also worth the message making clear the type was promoted? > > eg: > > <source>:5:14: warning: format '%d' expects argument of type 'int', but > argument 2 has type 'float' automatically promoted to 'double', for which > '%f' is required [-Wformat=] > > 5 | printf("%d", i); > | ~^ ~ > | | | > | int float > | %f Maybe, but the message would be getting pretty long by that point...