Hacker News new | ask | show | jobs
by bugeats 2144 days ago
ITT: everyone pretending they've never burned hours troubleshooting only to find a stupid `=` instead of a `==`.
2 comments

Yea. Who hasn’t slipped up and forgotten an equals sign... and then accidentally exploited the Linux CVS and pushed their code without approval...

We’ve all been there! /s

It has been a long time since I make sure my codebases have `-Wall -Werror`. This bug is from 2003 both when that wasn't as common & when compiler diagnostics weren't as good/reliable.
This code would not trigger under -Wall -Werror. Try it.
I was referring to what the parent wrote:

> ITT: everyone pretending they've never burned hours troubleshooting only to find a stupid `=` instead of a `==`.

In the general case that OP was talking about, not for underhanded code, my comment holds.