Why should I always enable compiler warnings?

后端 未结 20 1602
时光说笑
时光说笑 2020-11-22 00:28

I often hear that when compiling C and C++ programs I should \"always enable compiler warnings\". Why is this necessary? How do I do that?

Sometimes I also hear tha

20条回答
  •  广开言路
    2020-11-22 00:48

    A warning is an error waiting to happen. So you must enable compiler warnings and tidy up your code to remove any warning.

提交回复
热议问题