]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: lua: silence some compiler warnings after WILL_LJMP
authorWilly Tarreau <w@1wt.eu>
Tue, 16 Oct 2018 15:57:36 +0000 (17:57 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 16 Oct 2018 15:57:36 +0000 (17:57 +0200)
commitb059b894cdf795f134b6e53ff95ea7f907feb846
treec0cc31cfdd1a1b6ae44820ff4c1e01e06a12be20
parent9635e03c41e95dff38731f67cc9d8b00e3731d2a
BUILD: lua: silence some compiler warnings after WILL_LJMP

These ones are on error paths that are properly handled by luaL_error()
which does a longjmp() but the compiler cannot know it. By adding an
__unreachable() statement in WILL_LJMP(), there is no ambiguity anymore.

This may be backported to 1.8 but these previous patches are needed first :
  - BUILD: compiler: add a new statement "__unreachable()"
  - MINOR: lua: all functions calling lua_yieldk() may return
  - BUILD: lua: silence some compiler warnings about potential null derefs (#2)
src/hlua.c