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/86102] Include argument name in warning


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.

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