Skip to content
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

"declaration shadows a local variable" Clang warning #1658

Closed
tigerw opened this issue May 1, 2020 · 1 comment
Closed

"declaration shadows a local variable" Clang warning #1658

tigerw opened this issue May 1, 2020 · 1 comment

Comments

@tigerw
Copy link

tigerw commented May 1, 2020

fmt/include/fmt/printf.h:507:12: error: declaration shadows a local variable [-Werror,-Wshadow]
  auto end = str + specs.precision;
       ^
fmt/include/fmt/printf.h:469:15: note: previous declaration is here
  const Char* end = parse_ctx_.end();

when testing this build using master @ f19d667.

Seems like it doesn't like this line.

@vitaut vitaut changed the title "declaration shadows a local variable" Clang error "declaration shadows a local variable" Clang warning May 1, 2020
vitaut added a commit that referenced this issue May 1, 2020
@vitaut
Copy link
Contributor

vitaut commented May 1, 2020

Fixed in 3c114d0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants