Is it a good idea to eliminate compiler warnings?

前端 未结 14 2653
既然无缘
既然无缘 2021-02-19 01:00

In the past I\'ve worked with -Wall and other switches for gcc to eliminate every compiler warning for projects I\'ve been involved in. Similarly, in Perl, I always program wit

14条回答
  •  误落风尘
    2021-02-19 01:25

    Is this worth a programmer's time? Will a project really be much better if you track down every single compiler warning?

    Yes. Even the trivial ones about sign mismatch can have profound impact on code generation and optimizations.

提交回复
热议问题