2 ms·
Specifically, it doesn't warn you if the assignment statement is in parenthesis, so while ((xs = xs->tail)) doesn't warn. I really like how GCC handles that.
by PeCaN 11y ago
Specifically, it doesn't warn you if the assignment statement is in parenthesis, so while ((xs = xs->tail)) doesn't warn. I really like how GCC handles that.
- chris_wot 11y agoI just noticed this comment. OK, you've definitely got a good point. That is elegant.