4 ms·
Yeah, enable -Wall. It won't catch everything, but it will get some of them.
by saagarjha 8y ago
Yeah, enable -Wall. It won't catch everything, but it will get some of them.
- hermitdev 8y agoAnd -Wextra. Adds some more useful warnings not enabled by -Wall. Even adding -Wextra doesn't turn on everything, yet more have to be turned on manually, like -Wzero-as-null-pointer-constant.
- deleted 8y ago[deleted]
- ncmncm 8y agoYou are aware that -W turns on more warnings that -Wall? Be glad they fixed it, sometime back, so "-W -Wall" doesn't turn off the extra -W warnings.
- saagarjha 8y agoYeah, but -Wextra has some options that I consider to be of dubious value.