Project

General

Profile

Actions

Bug #8695

closed

inet/ip/ip6_ire.c: variable 'masked_addr' set but not used

Added by Toomas Soome about 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
kernel
Start date:
2017-10-03
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
External Bug:

Description

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.

Actions

Also available in: Atom PDF