inet/ip/ip6_ire.c: variable 'masked_addr' set but not used
gcc 6 build issue:
../../common/inet/ip/ip6_ire.c: In function 'ire_match_args_v6': ../../common/inet/ip/ip6_ire.c:690:13: error: variable 'masked_addr' set but not used [-Werror=unused-but-set-variable] in6_addr_t masked_addr; ^~~~~~~~~~~ cc1: all warnings being treated as errors
and indeed, the V6_MASK_COPY() macro does not copy the mask, but is using mask to create masked address, but this masked address is not used in this function.
Updated by Electric Monk almost 5 years ago
- Status changed from In Progress to Closed
- % Done changed from 90 to 100
commit 86e908a90d84b25fff11d115c73c14e4634bb00b Author: Toomas Soome <email@example.com> Date: 2017-10-09T14:07:39.000Z 8695 inet/ip/ip6_ire.c: variable 'masked_addr' set but not used Reviewed by: Yuri Pankov <firstname.lastname@example.org> Reviewed by: Sebastian Wiedenroth <email@example.com> Reviewed by: Robert Mustacchi <firstname.lastname@example.org> Approved by: Dan McDonald <email@example.com>