[PATCH 6/7] Protect 'orig_len' in |recover_unused_bytes| by DBUS_ENABLE_VERBOSE_MODE
Thiago Macieira
thiago at kde.org
Mon Aug 15 21:52:07 UTC 2016
Em segunda-feira, 15 de agosto de 2016, às 12:17:06 PDT, Simon McVittie
escreveu:
> On 10/08/16 16:08, Thiago Macieira wrote:
> > One way I've solved this problem is to "use" the expression in even
> > disabled asserts
>
> That results in the expression's side-effects still happening: for
> instance if it calls a function, we pay the CPU cost of calling that
> function. I don't think we want that here.
Not really, because C has required mandatory short-circuiting. In
if (false && expr)
expr will never, ever be evaluated.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Software Architect - Intel Open Source Technology Center
More information about the dbus
mailing list