Bug 196465

Summary: clang 3.5: Fix compilation of tools/tools/netmap/pkt-gen.c
Product: Base System Reporter: olivier
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed Overcome By Events    
Severity: Affects Some People    
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch file for netmap/pkt-gen with clang 3.5 none

Description olivier 2015-01-03 17:34:41 UTC
Created attachment 151295 [details]
patch file for netmap/pkt-gen with clang 3.5

Since Clang 3.5.0 import on -current I've got this problem for compiling tools/tools/netmap/pkt-gen.c:

 pkt-gen.c:1820:8: error: comparison of array 'g.ifname' equal to a null pointer is always false [-Werror,-Wtautological-pointer-compare]
        if (g.ifname == NULL) {
            ~~^~~~~~    ~~~~

Here is a proposal for this problem.
Comment 1 Tobias Kortkamp freebsd_committer freebsd_triage 2018-11-02 11:24:34 UTC
This seems to have been fixed by base r278641.