BUILD: lua: silence a build warning with TCC
authorWilly Tarreau <w@1wt.eu>
Wed, 14 Jul 2021 17:41:25 +0000 (19:41 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 27 Jul 2021 06:36:40 +0000 (08:36 +0200)
commitb819db30ab9107c6568a1c643f2aeb429db20401
tree5be467f273f070e37adbe903b8bfd287e4af7c2a
parent228cbaf95e94500c7235868d8f972c59d92f3a5d
BUILD: lua: silence a build warning with TCC

TCC doesn't have the equivalent of __builtin_unreachable() and complains
that hlua_panic_ljmp() may return no value. Let's add a return 0 there.
All compilers that know that longjmp() doesn't return will see no change
and tcc will be happy.

(cherry picked from commit 6a510907807b7fb901654b4f5e5100aa91868fb7)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 69c66e3584ac81b70dd445ff56f8c9815de8f28c)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/hlua.c