I think that would still use 1 extra byte per object, which isn’t ideal but we
may be ok with that.
In general [[maybe_unused]] tells the compiler to stop telling us about
potential speedups. Usually that speedup is just a value in a register or on
the stack, which has a relatively small cost,
> > `sessionID` is used in RELEASE_LOG_IF_ALLOWED() and we have empty
> > implementation of RELEASE_LOG() so that it's ended up with unused
> > parameter warning of sessionID. We can add UNUSED_PARAM(sessionID) in
> > this case, but [[maybe_unused]] is more correct choice to describe the code
> > b
> On Jan 13, 2020, at 4:08 PM, Suzuki, Basuke wrote:
>
> `sessionID` is used in RELEASE_LOG_IF_ALLOWED() and we have empty
> implementation of RELEASE_LOG() so that it's ended up with unused parameter
> warning of sessionID. We can add UNUSED_PARAM(sessionID) in this case, but
> [[maybe_unused
3 matches
Mail list logo