On Wed, Jun 10, 2020 at 6:09 AM Tobias Klauser <tklauser@xxxxxxxxxx> wrote: > > The codegen function might fail an return an error. Check its return > value in all call sites and handle it properly. > > Signed-off-by: Tobias Klauser <tklauser@xxxxxxxxxx> > --- codegen() can fail only if the system ran out of memory or the static template is malformed. Both are highly unlikely. I wonder if the better approach would be to just exit(1) on such an unlikely error inside codegen() and make the function itself void-returning. We'll probably expand codegen to other languages soon, so not having to do those annoying error checks everywhere is a good thing. What do you think? [...]