]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: lua: silence some compiler warnings about potential null derefs
authorWilly Tarreau <w@1wt.eu>
Mon, 15 Oct 2018 09:55:18 +0000 (11:55 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 15 Oct 2018 11:24:43 +0000 (13:24 +0200)
commitf1ffb39b614b0d9654c9450ac6e8c88cfc942784
tree7ba32b4cf15e3f0fc0eae5eb18924935ca515fac
parent8d26f02e693121764bfa0cb48c9a7ab31e17225d
BUILD: lua: silence some compiler warnings about potential null derefs

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 the previous patch (BUILD: compiler:
add a new statement "__unreachable()") is needed for this.
src/hlua.c