News for hackers. Stuff that matters.
Re:Clang is better than GCC by owl57 on Sunday November 27, 2022 @08:29PM (#33768831)
I'm slightly horrified with the specificity of this warning (-Wmemsize-comparison). Apparently enough programmers make this exact mistake.
Re:Clang is better than GCC by estebank on Monday November 28, 2022 @12:38AM (#33770166)
You shouldn't be: things that happen rarely happen all the time at scale. If you know of one person hit an edge case, chances are that many more will in the future (and others have before but didn't bother to tell anyone about it). Because of this it is always worth it to handle these edge cases, a couple hours implementing the lint will pay itself several times over by saving others from a single person a lot of time, or a lot of people a little bit. Of course, who pays for that time is different so it is easy to say "sucks to be you" and not do anything about it.
Re:Clang is better than GCC by owl57 on Monday November 28, 2022 @09:29AM (#33773987)
Yes, I was thinking exactly this: if someone suggested adding such a warning, chances are they were far from the only one burnt.