From: Willy Tarreau Date: Wed, 17 Jun 2015 18:18:54 +0000 (+0200) Subject: BUILD/MINOR: lua: ensure that hlua_ctx_destroy is properly defined X-Git-Tag: v1.6-dev3~49 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ce7b4def7415be6dad293db08f39650ce24c3827;p=thirdparty%2Fhaproxy.git BUILD/MINOR: lua: ensure that hlua_ctx_destroy is properly defined When Lua is disabled, the alternate functions must have the same prototype as the original ones, otherwise we get such warnings : src/stream.c:278:27: warning: too many arguments in call to 'hlua_ctx_destroy' hlua_ctx_destroy(&s->hlua); ~~~~~~~~~~~~~~~~ ^ No backport is needed. --- diff --git a/include/proto/hlua.h b/include/proto/hlua.h index 4215373efc..7ad5a99ef3 100644 --- a/include/proto/hlua.h +++ b/include/proto/hlua.h @@ -37,7 +37,7 @@ int hlua_post_init(); /* Empty function for compilation without Lua. */ static inline void hlua_init() { } static inline int hlua_post_init() { return 1; } -static inline void hlua_ctx_destroy() { } +static inline void hlua_ctx_destroy(struct hlua *lua) { } #endif /* USE_LUA */