C / C++ compiler warnings: do you clean up all your code to remove them or leave them in?

前端 未结 18 2298
夕颜
夕颜 2020-12-24 00:08

I\'ve worked on many projects where I\'ve been given code by others to update. More often than not I compile it and get about 1,000+ compiler warnings. When I see compiler w

18条回答
  •  执念已碎
    2020-12-24 00:52

    The codebase I work on has over 4000 warnings. Some of them are legit problems. We never are given time to go in and fix them, nor refactor other broken things... Partly, this is because the code is so old it predates standardized C++. We can only compile in VC++ 6.

提交回复
热议问题