Project

General

Profile

Actions

Bug #9181

closed

ipf: this use of "defined" may not be portable

Added by Toomas Soome over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
2018-02-22
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

Issue found by gcc 7 build:

        in file included from ../../common/inet/ipf/ip_frag.c:79:0:
        ../../common/inet/ipf/netinet/ip_fil.h:1378:7: error: this use of "defined" may not be portable [-Werror=expansion-to-defined]
         #  if SOLARIS
               ^~~~~~~
        ../../common/inet/ipf/netinet/ip_fil.h:1378:7: error: this use of "defined" may not be portable [-Werror=expansion-to-defined]
        ../../common/inet/ipf/netinet/ip_fil.h:1378:7: error: this use of "defined" may not be portable [-Werror=expansion-to-defined]

Use explicit value of (1) or (0) and use the same method in all cases.

Actions

Also available in: Atom PDF