Re: RFC: Enabling -Wshadow, by default?

Christoph Grüninger <[email protected]>
Newsgroups gmane.comp.kde.devel.general
Message-ID <[email protected]>
Hi Friedrich,
I often resolve compiler warnings and findings from static analyzers. 
Last year I spotted a real bug where shadowing mislead the original 
author to use the wrong variable. I could not find the according pull 
request, I think it was outside of KDE.

Personally, I consider shadowing a defect and I would not accept it in a 
review.

Bye
Christoph

-- 
Most customers will not accept source code with compile errors in it.
                  Dan Saks, CppCon 2016 (https://youtu.be/D7Sd8A6_fYU)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.