From e466eb9e2baf17385a05b39cf1ab51b9b6e7162d Mon Sep 17 00:00:00 2001 From: Reto Schneider Date: Wed, 30 Sep 2020 10:36:19 +0200 Subject: [PATCH] Fix warning when building with -Wextra (and -Wno-unused-parameter) Signed-off-by: Reto Schneider --- examples/bootstrap_server/bootstrap_info.c | 2 +- examples/client/object_access_control.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/bootstrap_server/bootstrap_info.c b/examples/bootstrap_server/bootstrap_info.c index 5784b2d44..bb45aac9f 100644 --- a/examples/bootstrap_server/bootstrap_info.c +++ b/examples/bootstrap_server/bootstrap_info.c @@ -62,7 +62,7 @@ static int prv_find_next_section(FILE * fd, { if (line[0] == '[') { - int i; + size_t i; length = strlen(line); i = 1; diff --git a/examples/client/object_access_control.c b/examples/client/object_access_control.c index 04766ae55..9d8810cc8 100644 --- a/examples/client/object_access_control.c +++ b/examples/client/object_access_control.c @@ -261,7 +261,7 @@ static uint8_t prv_write_resources(uint16_t instanceId, int numData, acc_ctrl_ri_t* acValListSave = accCtrlOiP->accCtrlValList; accCtrlOiP->accCtrlValList = NULL; - int ri; + size_t ri; lwm2m_data_t* subTlvArray = tlvArray[i].value.asChildren.array; if (tlvArray[i].value.asChildren.count == 0)