Comment on OpenBSD kernel source file style guideparentComments−DrJokepu11yPeople keep saying that, but do bugs like that really happen? In my entire career as a professional software developer I've never seen it happening. Not once.−hobo_mark11yOh yes it does.https://www.imperialviolet.org/2014/02/22/applebug.html−DrJokepu11yFair enough. That being said, -Wunreachable-code would have caught that.−coolsunglasses11yFair enough. That being said, -Wunreachable-code would have caught that.-Wunreachable-code was disabled in gcc years ago.−DrJokepu11yYes, but I would assume that Apple uses clang internally?−Arnt11yApple's goto/fail bug could only exist because single-line then clauses work.
Comments
People keep saying that, but do bugs like that really happen? In my entire career as a professional software developer I've never seen it happening. Not once.
Oh yes it does.
https://www.imperialviolet.org/2014/02/22/applebug.html
Fair enough. That being said, -Wunreachable-code would have caught that.
-Wunreachable-code was disabled in gcc years ago.
Yes, but I would assume that Apple uses clang internally?
Apple's goto/fail bug could only exist because single-line then clauses work.