]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: lua: silence a build warning with TCC
authorWilly Tarreau <w@1wt.eu>
Wed, 14 Jul 2021 17:41:25 +0000 (19:41 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 14 Jul 2021 17:41:25 +0000 (19:41 +0200)
commit6a510907807b7fb901654b4f5e5100aa91868fb7
treef13c2cacffc7c7f92252699beddae2274750b8bf
parent1335da38f4e1d73df4e7d5fb1e98846e34c9367d
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.
src/hlua.c