4 ms·
Most of these are just mistakes you see in code written by novices or non-professionals. Although its symptomatic of a larger issue when working with productio
by hctaw 6y ago
Most of these are just mistakes you see in code written by novices or non-professionals.
Although its symptomatic of a larger issue when working with production C++ codebases, which is that you need a lot of eyes on the code to prevent these mistakes and automated tools only go so far.
As always, -Wall, -Wpedantic, -Wextra, and -Werror are your friends. But you should understand the error before you fix warnings (which is what `double x = double(1)` looks like)