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

Global shadowing warnings #730

Open
ibis-hdl opened this issue Aug 14, 2022 · 1 comment
Open

Global shadowing warnings #730

ibis-hdl opened this issue Aug 14, 2022 · 1 comment

Comments

@ibis-hdl
Copy link

Using MSVC with enabled Warning /W4 I get the warning on Boost 1.78

H:.conan\short\8c1894\1\include\boost\spirit\home\x3\auxiliary\any_parser.hpp(121): warning C4459: Declaration of "attr" hides global Declaration
H:.conan\short\8c1894\1\include\boost\spirit\home\x3\auxiliary\attr.hpp(126): note: see Declaration of "boost::spirit::x3::attr"

H:.conan\short\8c1894\1\include\boost\spirit\home\x3\support\no_case.hpp(56): warning C4459: Declaration of "char_type" hides global Declaration
H:.conan\short\8c1894\1\include\boost\spirit\home\x3\char\char.hpp(20): note: see Declaration of "boost::spirit::x3::standard::char_type"

I haven't checked it with v1.80 yet. Please fix the naming so once is able to compile with higher warning levels on MSVC; otherwise close this issue please.

@Kojoley
Copy link
Collaborator

Kojoley commented Aug 16, 2022

Fixing global shadowing warnings is on my TODO, but at very low priority due to little value and high intrusiveness of the fix.

@Kojoley Kojoley changed the title Declaration of "attr", "char_type" hides global Declaration Global shadowing warnings Aug 16, 2022
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