[patch] Fix uninitialized Dwarf_Frame->regs
roland at hack.frob.com
Mon Oct 8 21:04:25 UTC 2012
> Do you mean plain assert? I would find this case more appropriate for static
> assertion, in GDB it is:
I did, but only because I didn't think we had a handy macro for static assert.
> In elfutils is already BUILD_BUG_ON_ZERO but only in "libebl/libeblP.h".
Move it into lib/system.h. For this kind of use, we should have one that
is warning-free when used as a statement, so add another macro if needed to
achieve that. That's better than a hack like:
> + bigger += BUILD_BUG_ON_ZERO (reg_unspecified);
More information about the elfutils-devel