Y
Hacker News
new
|
ask
|
show
|
jobs
by
twoodfin
3437 days ago
benmmurphy's comment below points out that the flawed test was "mode > 0".
https://news.ycombinator.com/item?id=13470516
1 comments
zokier
3437 days ago
I'd still expect GCC to warn about that
link
0xffff2
3437 days ago
Warn about what? "mode > 0" is
not
always true.
link
twoodfin
3437 days ago
Eh, I feel like I've seen even pickier static analysis warnings. If the next -Wall told me I should rewrite this as "mode != 0" to confirm the intent, that wouldn't seem crazy to me.
link