Re:Twitter urges users to change passwords after computer 'g...
by mkagenius on Thursday May 03, 2018 @10:12PM
(#16991720)
People (atleast me) ignore warnings quite often, they aren’t safe haven if you ask me.
[ Parent
| on HN ]
Re:Twitter urges users to change passwords after computer 'g...
by _sh on Thursday May 03, 2018 @11:33PM
(#16992020)
Hey no problem, just add -Werror to your compiler flags (C/C++/Java) or '<TreatWarningsAsErrors>true</TreatWarningsAsErrors>' to your csproj (C#).
Re:Twitter urges users to change passwords after computer 'g...
by kiallmacinnes on Friday May 04, 2018 @03:21AM
(#16992789)
This! Treat every warning as a failure, ideally in your CI system so people can't forget, and this problem (ignoring warnings..) goes away.
You will have a better, more reliable, and safer codebase once you clean up the legacy mess and turn this on..
Re:Twitter urges users to change passwords after computer 'g...
by acomjean on Friday May 04, 2018 @08:55AM
(#16994188)
I agree. Having worked in a project with warnings as errors on (c++) I found it annoying at first but it made me a better coder in the long run.
Plus you get out of the habit of not reading output from the compiler because there are so many warnings...
Re:Twitter urges users to change passwords after computer 'g...
by maljx on Friday May 04, 2018 @05:30AM
(#16993274)
Unless you follow a zero warning policy they are almost useless. If you have a warning that should be ignored add a pragma disable to that file. Or disable that type of warning if it's too spammy for your project.