23.03.2017 20:10, Eric Blake пишет: > > Then you get a warning about an unused label. But how about: > > #ifdef RE_ENABLE_I18N > case OP_UTF8_PERIOD: > if (ch >= ASCII_CHARS) > return false; > goto FALLTHROUGH_TO_OP_PERIOD; > FALLTHROUGH_TO_OP_PERIOD: > #endif > > case OP_PERIOD: >
Yes, works too. Although it probably needs comment explaining what happens. Although this looks like some more intelligence on GCC side may cause it to fail again (as we finally do not leave case label at all, so we fall through ...)
signature.asc
Description: OpenPGP digital signature
