diff --git a/FreeRTOS_IP.c b/FreeRTOS_IP.c index 68549035b8..a0ab39e3b3 100644 --- a/FreeRTOS_IP.c +++ b/FreeRTOS_IP.c @@ -1997,13 +1997,11 @@ static eFrameProcessingResult_t prvAllowIPPacket( const IPPacket_t * const pxIPP if( pxIPPacket->xIPHeader.ucProtocol == ( uint8_t ) ipPROTOCOL_UDP ) { ProtocolPacket_t * pxProtPack; - const uint16_t * pusChecksum; /* pxProtPack will point to the offset were the protocols begin. */ pxProtPack = ipCAST_PTR_TO_TYPE_PTR( ProtocolPacket_t, &( pxNetworkBuffer->pucEthernetBuffer[ uxHeaderLength - ipSIZE_OF_IPv4_HEADER ] ) ); - pusChecksum = ( const uint16_t * ) ( &( pxProtPack->xUDPPacket.xUDPHeader.usChecksum ) ); - if( *pusChecksum == ( uint16_t ) 0U ) + if( pxProtPack->xUDPPacket.xUDPHeader.usChecksum == ( uint16_t ) 0U ) { #if ( ipconfigHAS_PRINTF != 0 ) { diff --git a/tools/tcp_utilities/tcp_mem_stats.c b/tools/tcp_utilities/tcp_mem_stats.c index b3aa87c54e..4a2530e05d 100644 --- a/tools/tcp_utilities/tcp_mem_stats.c +++ b/tools/tcp_utilities/tcp_mem_stats.c @@ -49,7 +49,7 @@ #ifndef ipconfigTCP_MEM_STATS_MAX_ALLOCATION #define ipconfigTCP_MEM_STATS_MAX_ALLOCATION 128u - #pragma warning "ipconfigTCP_MEM_STATS_MAX_ALLOCATION undefined?" + #pragma message ("ipconfigTCP_MEM_STATS_MAX_ALLOCATION undefined?") #endif #if ( ipconfigUSE_TCP_MEM_STATS != 0 )