-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parameter name shadow warning (includes patch) #114
Comments
Thanks. Please submit pull request to cppformat(https://github.com/cppformat/cppformat) repository. forma.h and format.cc are part of the cppformat |
Unfortunately that's not as simple as I thought; the code you're using seems a bit older than the current master of cppformat. |
cppformat pull is fmtlib/fmt#191 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Gabi,
I get a warning in details/format.h where in the ctor of NamedArg the parameter "name" shadows member "name".
This happens with:
Although the warning does not appear with GCC 4.8.3, it is genuine in my opinion, this simple patch fixes it (changes parameter "name" to "argname"):
The text was updated successfully, but these errors were encountered: