This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/44513] improve column number and text of format warnings


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44513

Nicola Pero <nicola at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED

--- Comment #2 from Nicola Pero <nicola at gcc dot gnu.org> 2011-01-17 23:51:49 UTC ---
> In this context, I would prefer the traditional GCC error message ("too few
> arguments"), which is a simple, clear summary of the problem.

Except that older GCCs still generated 4 errors here, so I'm whining about
nothing. ;-)

test4.c: In function âfooâ:
test4.c:5: warning: format â%dâ expects type âintâ, but argument 2 has type
âdoubleâ
test4.c:5: warning: format â%fâ expects type âdoubleâ, but argument 3 has type
âintâ
test4.c:5: warning: format â%dâ expects type âintâ, but argument 4 has type
âdoubleâ
test4.c:5: warning: too few arguments for format

Anyway, I'll resolve it as it's been implemented in 4.6.

Thanks


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]