mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 20:46:11 +02:00
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.
This commit is contained in:
parent
1335da38f4
commit
6a51090780
@ -124,7 +124,7 @@
|
||||
__decl_spinlock(hlua_global_lock);
|
||||
THREAD_LOCAL jmp_buf safe_ljmp_env;
|
||||
static int hlua_panic_safe(lua_State *L) { return 0; }
|
||||
static int hlua_panic_ljmp(lua_State *L) { WILL_LJMP(longjmp(safe_ljmp_env, 1)); }
|
||||
static int hlua_panic_ljmp(lua_State *L) { WILL_LJMP(longjmp(safe_ljmp_env, 1)); return 0; }
|
||||
|
||||
/* This is the chained list of struct hlua_function referenced
|
||||
* for haproxy action, sample-fetches, converters, cli and
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user