Re:Humans should think of sizeof() as a function, says Linus...
by dllthomas on Saturday May 30, 2015 @03:15PM
(#9631405)
"This upset the old ARM compiler I was working on and it decided to skip some of the conditions."
Do what you need to work around a known compiler bug, of course, but that is definitively a compiler bug. The meaning is unambiguous and consistent in the C standard and every implementation I've encountered. I'm not comfortable with the assertion that changing your coding style here makes you less susceptible to compiler bugs in general.
Honestly, the more pervasive problem that comes up is the eventual addition of new code adds noise to diffs. Like if I have a condition with a single statement
And I add something to it, I have to add braces and it pollutes the diff with stuff that isn't really related to what I'm changing.