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
GCC with -Wshadow generates warnings #3
Comments
Sure, that's easy to fix. Thanks for the tip! On 11/06/2012 12:39, Andrey Vihrov wrote:
|
I believe I fixed that. Closing; and many thanks! |
I believe there are some occurrences left in In file included from /home/andrey/olymp/local:8:0, from template.cpp:8: /home/andrey/olymp/prettyprint.hpp: In member function 'std::ostream& pretty_print::custom_delims_wrapper::stream(std::ostream&)': /home/andrey/olymp/prettyprint.hpp:248:9: warning: declaration of 'stream' shadows a member of 'this' [-Wshadow] { ^ /home/andrey/olymp/prettyprint.hpp: In member function 'std::wostream& pretty_print::custom_delims_wrapper::stream(std::wostream&)': /home/andrey/olymp/prettyprint.hpp:252:9: warning: declaration of 'stream' shadows a member of 'this' [-Wshadow] { ^ |
Thanks, let me check and fix that... |
Fixed in commit a82568a. Thanks for reporting! |
prettyprint98.hpp
generates this with GCC 4.7 and-Wshadow
:As
-Wshadow
is a very useful warning and I would like my programs to be warning-free, I kindly ask to fix this :-)The text was updated successfully, but these errors were encountered: