summaryrefslogtreecommitdiffstats
path: root/ctl-lib/ctl-action.c
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2018-05-25 11:16:50 +0200
committerStéphane Desneux <stephane.desneux@iot.bzh>2018-05-29 08:27:26 +0000
commitbcd9efc10d60e5f83218378fdd0a3ee847fb9c75 (patch)
tree1b4574719c7566fb4870346aec1dc0b2ee04535b /ctl-lib/ctl-action.c
parent0e30275f1d9e3ab867273efec64ae65589d3fdb4 (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-action.c')
-rw-r--r--ctl-lib/ctl-action.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctl-lib/ctl-action.c b/ctl-lib/ctl-action.c
index 764fd25..4002dde 100644
--- a/ctl-lib/ctl-action.c
+++ b/ctl-lib/ctl-action.c
@@ -340,7 +340,7 @@ CtlActionT *ActionConfig(AFB_ApiT apiHandle, json_object *actionsJ, int exportAp
// action array is close with a nullvalue;
if (json_object_is_type(actionsJ, json_type_array)) {
- int count = json_object_array_length(actionsJ);
+ int count = (int)json_object_array_length(actionsJ);
actions = calloc(count + 1, sizeof (CtlActionT));
for (int idx = 0; idx < count; idx++) {