This avoids 5 build warnings when preprocessing happens before compiling
with gcc >= 7.
case HLUA_E_ERR:
/* Display log. */
SEND_ERR(stream->be, "Lua converter '%s' returns an unknown error.\n", fcn->name);
- /* fall through */
+ __fallthrough;
default:
return 0;
case HLUA_E_ERR:
/* Display log. */
SEND_ERR(smp->px, "Lua sample-fetch '%s' returns an unknown error.\n", fcn->name);
- /* fall through */
+ __fallthrough;
default:
return 0;
case LUA_ERRERR:
kind = "message handler error";
- /* Fall through */
+ __fallthrough;
case LUA_ERRRUN:
if (!kind)
kind = "runtime error";
default:
/* Unknown error */
kind = "Unknown error";
- /* Fall through */
+ __fallthrough;
case LUA_YIELD:
/* yield is not configured at this step, this state doesn't happen */
if (!kind)
kind = "yield not allowed";
- /* Fall through */
+ __fallthrough;
case LUA_ERRMEM:
if (!kind)
kind = "out of memory error";