An end to implicit fall-throughs in the kernel
An end to implicit fall-throughs in the kernel
Posted Aug 2, 2019 21:35 UTC (Fri) by edeloget (subscriber, #88392)In reply to: An end to implicit fall-throughs in the kernel by dgm
Parent article: An end to implicit fall-throughs in the kernel
/* fall through */ tells what the code is expected to do (i.e. it documents the intention), while /*no break */ is just telling how it's written. The latter could have been added by someone who was surprised that there were no break, and might be a hasitly and lazily written question :)
Posted Aug 5, 2019 10:19 UTC (Mon)
by dgm (subscriber, #49227)
[Link]
;-P
An end to implicit fall-throughs in the kernel
My intention is always to write code that does not break. Sincerely, I hate code that falls throught.
