Azure-Samples / iot-middleware-freertos-samples

This repo has samples for dev kits using the Azure IoT middleware for FreeRTOS
MIT License
76 stars 46 forks source link

Fix variable type warnings in b-l475e-iot01a/port/azure_iot_flash_platform.c #377

Closed ewertons closed 1 year ago

ewertons commented 1 year ago

Purpose

This fix addresses the following warnings: C:/docs/iot-middleware-freertos-samples/demos/projects/ST/b-l475e-iot01a/port/azure_iot_flash_platform.c:94:29: warning: initialization of 'uint32_t' {aka 'long unsigned int'} from 'uint8_t ' {aka 'unsigned char '} makes integer from pointer without a cast [-Wint-conversion] 94 | uint32_t ulEndOfBlock = pxAduImage->xUpdatePartition + ulOffset + ulBlockSize; | ^~~~~~ C:/docs/iot-middleware-freertos-samples/demos/projects/ST/b-l475e-iot01a/port/azure_iot_flash_platform.c:98:29: warning: comparison between pointer and integer 98 | while( pucNextWriteAddr < ulEndOfBlock ) | ^

Does this introduce a breaking change?

[ ] Yes
[x] No

Pull Request Type

What kind of change does this Pull Request introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

Test the sample ST b-l475e-iot01a.

What to Check

That these specific warnings are not logged by the compiler.

Other Information