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

前端 未结 18 2305
夕颜
夕颜 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 01:09

    I would clean up any warning. Even the ones that you know are harmless (if such a thing exists) will give a bad impression of you to whoever will compile the code.

    It one of the "smelly" signs I would look for if I had to work on someone else code.

    If not real errors or potential future issues, it would be a sign of sloppiness

提交回复
热议问题