1
0
mirror of https://github.com/FreeRTOS/FreeRTOS-Plus-TCP synced 2025-10-21 23:30:39 +08:00

Fix Additional Clang warnings

Corrects several warnings from Clang flags
for Clang 13.
This commit is contained in:
Monika Singh
2023-04-17 18:39:49 +00:00
parent f15537303c
commit a492abb0a8
25 changed files with 318 additions and 315 deletions

View File

@@ -79,7 +79,7 @@ extern NetworkEndPoint_t * pxGetEndpoint( BaseType_t xIPType );
* @brief Get the first end point of the type (IPv4/IPv6) from the list
* the list of end points.
*
* @param[in] xIPType: IT type (ipTYPE_IPv6/ipTYPE_IPv4)
* @param[in] xIPType IT type (ipTYPE_IPv6/ipTYPE_IPv4)
*
* @returns Pointer to the first end point of the given IP type from the
* list of end points.
@@ -116,9 +116,9 @@ NetworkEndPoint_t * pxGetEndpoint( BaseType_t xIPType )
* i.e. in the cache 'eARPCacheMiss' was returned.
* Either an ARP request or a Neighbour solicitation will be emitted.
*
* @param[in] pxNetworkBuffer : The network buffer carrying the UDP or ICMP packet.
* @param[in] pxNetworkBuffer The network buffer carrying the UDP or ICMP packet.
*
* @param[out] pxLostBuffer : The pointee will be set to true in case the network packet got released
* @param[out] pxLostBuffer The pointee will be set to true in case the network packet got released
* ( the ownership was taken ).
*/
static eARPLookupResult_t prvStartLookup( NetworkBufferDescriptor_t * const pxNetworkBuffer,
@@ -193,7 +193,7 @@ static eARPLookupResult_t prvStartLookup( NetworkBufferDescriptor_t * const pxNe
* @brief Process the generated UDP packet and do other checks before sending the
* packet such as ARP cache check and address resolution.
*
* @param[in] pxNetworkBuffer: The network buffer carrying the packet.
* @param[in] pxNetworkBuffer The network buffer carrying the packet.
*/
void vProcessGeneratedUDPPacket_IPv6( NetworkBufferDescriptor_t * const pxNetworkBuffer )
{
@@ -412,9 +412,9 @@ void vProcessGeneratedUDPPacket_IPv6( NetworkBufferDescriptor_t * const pxNetwor
/**
* @brief Process the received UDP packet.
*
* @param[in] pxNetworkBuffer: The network buffer carrying the UDP packet.
* @param[in] usPort: The port number on which this packet was received.
* @param[out] pxIsWaitingForARPResolution: If the packet is awaiting ARP resolution,
* @param[in] pxNetworkBuffer The network buffer carrying the UDP packet.
* @param[in] usPort The port number on which this packet was received.
* @param[out] pxIsWaitingForARPResolution If the packet is awaiting ARP resolution,
* this pointer will be set to pdTRUE. pdFALSE otherwise.
*
* @return pdPASS in case the UDP packet could be processed. Else pdFAIL is returned.