Should I worry about unused variables?
问题 I am working in large code base in C++, totaling approximately 8 million lines of code. In my application I have seen thousands of unused variables, which were reported by g++ but were ignored by my team. I want to take initiative for cleaning these variables but I need some info before working this issue. Will there be any issues or disadvantages of having thousands of unused variables? The compiler by default treats this as an ignored warning, but I believe we should treat warnings as