anchao opened a new pull request, #7273:
URL: https://github.com/apache/incubator-nuttx/pull/7273

   
   
   ## Summary
   
   net/igmp: fix build warning on GCC 12.2.0
   
   ```
   igmp/igmp_input.c: In function 'igmp_input':
   igmp/igmp_input.c:201:31: warning: the comparison will always evaluate as 
'false' for the address of 'grpaddr' will never be NULL [-Waddress]
     201 |             if (igmp->grpaddr == 0)
         |                               ^~
   In file included from nuttx/include/nuttx/net/netstats.h:67,
                    from igmp/igmp_input.c:53:
   nuttx/include/nuttx/net/igmp.h:132:12: note: 'grpaddr' declared here
     132 |   uint16_t grpaddr[2];       /* 32-bit Group address */
         |            ^~~~~~~
   ```
   
   Signed-off-by: chao an <[email protected]>
   
   ## Impact
   
   N/A
   
   ## Testing
   
   https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads
   
   $ arm-none-eabi-gcc -v
   gcc version 12.2.0 (Arm GNU Toolchain 12.2.MPACBTI-Bet1 (Build 
arm-12-mpacbti.16)) 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to