You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ntohl() returns a u32, which is defined as an unsigned int in Clang.
So we need to explicitely upper cast it into unsigned long.
Fixes this Clang warnining:
> /source/FreeRTOS_IPv4.c:443:52: warning: format specifies type 'unsigned long' but the argument has type 'uint32_t' (aka 'unsigned int') [-Wformat]
> 442 | FreeRTOS_printf( ( "prvAllowIPPacket: UDP packet from %lxip without CRC dropped\n",
> | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> | %x
> 443 | FreeRTOS_ntohl( pxIPPacket->xIPHeader.ulSourceIPAddress ) ) );
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /source/include/FreeRTOS_IP.h:252:32: note: expanded from macro 'FreeRTOS_ntohl'
> 252 | #define FreeRTOS_ntohl( x ) FreeRTOS_htonl( x )
> | ^
> /source/include/FreeRTOS_IP.h:233:5: note: expanded from macro 'FreeRTOS_htonl'
> 233 | ( \
> | ^
> /build/src/FreeRTOSIPConfig.h:75:12: note: expanded from macro 'FreeRTOS_printf'
> 75 | printf X
> | ^
0 commit comments