From 17663dd0e59dd806187069dfe373998d4cd941ed Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Fri, 25 May 2018 11:16:50 +0200 Subject: Fixed build warnings with gcc >= 7.3 Reduced the number of warnings in native host configuration (here Tumbleweed) in order to not hide true/real warnings that may appear in the future. Signed-off-by: Sebastien Douheret --- ctl-lib/ctl-lua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ctl-lib/ctl-lua.c') diff --git a/ctl-lib/ctl-lua.c b/ctl-lib/ctl-lua.c index 0123017..fe82317 100644 --- a/ctl-lib/ctl-lua.c +++ b/ctl-lib/ctl-lua.c @@ -114,7 +114,7 @@ static int LuaPushArgument(CtlSourceT *source, json_object *argsJ) { } case json_type_array: { - int length = json_object_array_length(argsJ); + int length = (int)json_object_array_length(argsJ); lua_newtable(luaState); for (int idx = 0; idx < length; idx++) { json_object *val = json_object_array_get_idx(argsJ, idx); -- cgit 1.2.3-korg