@@ -217,7 +217,7 @@ IoT_Error_t aws_iot_shadow_add_reported(char *pJsonDocument, size_t maxSizeOfJso
217217int32_t FillWithClientTokenSize (char * pBufferToBeUpdatedWithClientToken , size_t maxSizeOfJsonDocument ) {
218218 int32_t snPrintfReturn ;
219219 snPrintfReturn = snprintf (pBufferToBeUpdatedWithClientToken , maxSizeOfJsonDocument , "%s-%d" , mqttClientID ,
220- clientTokenNum ++ );
220+ ( int ) clientTokenNum ++ );
221221
222222 return snPrintfReturn ;
223223}
@@ -282,7 +282,7 @@ IoT_Error_t aws_iot_finalize_json_document(char *pJsonDocument, size_t maxSizeOf
282282}
283283
284284void FillWithClientToken (char * pBufferToBeUpdatedWithClientToken ) {
285- sprintf (pBufferToBeUpdatedWithClientToken , "%s-%d" , mqttClientID , clientTokenNum ++ );
285+ sprintf (pBufferToBeUpdatedWithClientToken , "%s-%d" , mqttClientID , ( int ) clientTokenNum ++ );
286286}
287287
288288static IoT_Error_t convertDataToString (char * pStringBuffer , size_t maxSizoStringBuffer , JsonPrimitiveType type ,
@@ -330,6 +330,8 @@ static jsmntok_t jsonTokenStruct[MAX_JSON_TOKEN_EXPECTED];
330330bool isJsonValidAndParse (const char * pJsonDocument , void * pJsonHandler , int32_t * pTokenCount ) {
331331 int32_t tokenCount ;
332332
333+ IOT_UNUSED (pJsonHandler );
334+
333335 jsmn_init (& shadowJsonParser );
334336
335337 tokenCount = jsmn_parse (& shadowJsonParser , pJsonDocument , strlen (pJsonDocument ), jsonTokenStruct ,
@@ -383,10 +385,10 @@ bool isJsonKeyMatchingAndUpdateValue(const char *pJsonDocument, void *pJsonHandl
383385 jsonStruct_t * pDataStruct , uint32_t * pDataLength , int32_t * pDataPosition ) {
384386 int32_t i ;
385387 uint32_t dataLength ;
386- jsmntok_t * pJsonTokenStruct ;
387388 jsmntok_t dataToken ;
388389
389- pJsonTokenStruct = (jsmntok_t * ) pJsonHandler ;
390+ IOT_UNUSED (pJsonHandler );
391+
390392 for (i = 1 ; i < tokenCount ; i ++ ) {
391393 if (jsoneq (pJsonDocument , & (jsonTokenStruct [i ]), pDataStruct -> pKey ) == 0 ) {
392394 dataToken = jsonTokenStruct [i + 1 ];
0 commit comments