diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2018-05-25 11:16:50 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-06-29 19:38:23 +0200 |
commit | 16e7fd08827082449a28952f911806704396e19a (patch) | |
tree | 28a048bcc12e83056b6fcc6d4a433b275958218c /ctl-lib/ctl-lua.c | |
parent | f4b14199af894f5c3c9769183ea4b22ab24e3eab (diff) |
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 <sebastien.douheret@iot.bzh>
Diffstat (limited to 'ctl-lib/ctl-lua.c')
-rw-r--r-- | ctl-lib/ctl-lua.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |