Messages in this thread | | | Date | Fri, 25 Apr 2008 17:12:27 +0200 (CEST) | From | Jan Engelhardt <> | Subject | Re: [PATCH] sched: add statics, don't return void expressions |
| |
On Friday 2008-04-25 14:42, Peter Zijlstra wrote: > >Sure, but this was just to show the idiom at hand; an actual use case >would be something like this: > >void bar(void) >{ > if (cond) > return foo(); > > /* do stuff ourselves */ >} > >Leaving out the return here does have side-effects. > Of course. You do not get that luxury in the middle of the function :^)
| |