Earlier quoted context omitted.
Hey no problem, just add -Werror to your compiler flags (C/C++/Java) or ' true ' to your csproj (C#).
This! Treat every warning as a failure, ideally in your CI system so people can't forget, and this problem (ignoring warnings..) goes away. You will have a better, more reliable, and safer codebase once you clean up the legacy mess and turn this on..
Plus you get out of the habit of not reading output from the compiler because there are so many warnings...