This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/86102] Include argument name in warning
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 11 Jun 2018 10:18:11 +0000
- Subject: [Bug c/86102] Include argument name in warning
- Auto-submitted: auto-generated
- References: <bug-86102-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86102
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Jonny Grant from comment #2)
> My bad apologies, I pasted the wrong compiler output from older gcc
>
> If I fix that const error in my sample, I get same output as you, with
> correct carat.
>
> Could I check - do you mean callnig a function like
>
> printf("result: %zu %zu %zu\n", value, "test", str);
>
> There is no benefit from displaying 'value' '"test"' or 'str' ?
Yes, there is no benefit in displaying that when it is printed already on the
caret line and can be highlighted with ~~~~s etc.
> Some functions might have 10 arguments.. much clearer to print the name of
It is not a name, but expression.