FreeRTOS / FreeRTOS-Cellular-Interface

FreeRTOS Cellular Interface implementation of the 3GPP TS v27.007 standard.
MIT License
85 stars 60 forks source link

Fix compile warnings #49

Closed matsujirushi closed 3 years ago

matsujirushi commented 3 years ago
../Lib/FreeRTOS-Cellular-Interface/source/cellular_pkthandler.c:193:24: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
../Lib/FreeRTOS-Cellular-Interface/source/cellular_pkthandler.c:734:29: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
../Lib/FreeRTOS-Cellular-Interface/source/cellular_pkthandler.c:734:29: warning: format '%d' expects argument of type 'int', but argument 3 has type 'int32_t' {aka 'long int'} [-Wformat=]
../Lib/FreeRTOS-Cellular-Interface/source/cellular_common.c:599:20: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
../Lib/FreeRTOS-Cellular-Interface/source/cellular_common.c:652:25: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
../Lib/FreeRTOS-Cellular-Interface/source/cellular_common.c:916:25: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
../Lib/FreeRTOS-Cellular-Interface/modules/sara_r4/cellular_r4_api.c:74:96: warning: "/*" within comment [-Wcomment]
../Lib/FreeRTOS-Cellular-Interface/modules/sara_r4/cellular_r4_api.c:234:21: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
../Lib/FreeRTOS-Cellular-Interface/modules/sara_r4/cellular_r4_api.c:234:21: warning: format '%d' expects argument of type 'int', but argument 3 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
../Lib/FreeRTOS-Cellular-Interface/modules/sara_r4/cellular_r4_api.c:256:25: warning: format '%d' expects argument of type 'int', but argument 3 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
../Lib/FreeRTOS-Cellular-Interface/modules/sara_r4/cellular_r4_api.c:822:78: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
../Lib/FreeRTOS-Cellular-Interface/modules/sara_r4/cellular_r4_api.c:906:40: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../Lib/FreeRTOS-Cellular-Interface/modules/sara_r4/cellular_r4_api.c:917:12: warning: "/*" within comment [-Wcomment]
../Lib/FreeRTOS-Cellular-Interface/modules/sara_r4/cellular_r4_urc_handler.c:436:29: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
../Lib/FreeRTOS-Cellular-Interface/modules/sara_r4/cellular_r4_urc_handler.c:438:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../Lib/FreeRTOS-Cellular-Interface/modules/sara_r4/cellular_r4_urc_handler.c:440:29: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=]
../Lib/FreeRTOS-Cellular-Interface/modules/sara_r4/cellular_r4_urc_handler.c:515:29: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
../Lib/FreeRTOS-Cellular-Interface/modules/sara_r4/cellular_r4_urc_handler.c:517:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../Lib/FreeRTOS-Cellular-Interface/modules/sara_r4/cellular_r4_urc_handler.c:519:29: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=]
../Lib/FreeRTOS-Cellular-Interface/modules/sara_r4/cellular_r4_urc_handler.c:582:29: warning: format '%d' expects argument of type 'int', but argument 2 has type 'uint32_t' {aka 'long unsigned int'} [-Wformat=]
../Lib/FreeRTOS-Cellular-Interface/modules/sara_r4/cellular_r4_urc_handler.c:584:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
../Lib/FreeRTOS-Cellular-Interface/modules/sara_r4/cellular_r4_urc_handler.c:586:29: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=]
chinglee-iot commented 3 years ago

Hi matsujirushi,

Thank you for your fix. We look into this PR and reply.

chinglee-iot commented 3 years ago

This PR is include in https://github.com/FreeRTOS/FreeRTOS-Cellular-Interface/pull/52. Once it is merged. I will close this PR.

chinglee-iot commented 3 years ago

The PR #52 is merged. Thank you for your contribution.