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

Warnings when compiling with clang-800.0.42.1 (OSX) #46

Closed
nbigaouette opened this issue Jan 29, 2017 · 0 comments
Closed

Warnings when compiling with clang-800.0.42.1 (OSX) #46

nbigaouette opened this issue Jan 29, 2017 · 0 comments

Comments

@nbigaouette
Copy link

I compile my code base with as much warnings as possible and cpptoml reports a couple of variables shadowing:

In file included from src/main.cxx:35:
src/cpptoml.h:1940:42: warning:
      declaration shadows a local variable [-Wshadow]
            = [&](std::string::iterator& it, std::string::iterator& end) {
                                         ^
src/cpptoml.h:1929:51: note: previous
      declaration is here
    parse_multiline_string(std::string::iterator& it,
                                                  ^
src/cpptoml.h:1940:69: warning:
      declaration shadows a local variable [-Wshadow]
            = [&](std::string::iterator& it, std::string::iterator& end) {
                                                                    ^
src/cpptoml.h:1930:51: note: previous
      declaration is here
                           std::string::iterator& end, char delim)

I guess simply using a different variable name for the inner loops will fix this.

This is on c926989.

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

Successfully merging a pull request may close this issue.

1 participant