This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/44513] improve column number and text of format warnings
- From: "nicola at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 17 Jan 2011 23:51:54 +0000
- Subject: [Bug c/44513] improve column number and text of format warnings
- Auto-submitted: auto-generated
- References: <bug-44513-4@http.gcc.gnu.org/bugzilla/>
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