[Bug 196465] clang 3.5: Fix compilation of tools/tools/netmap/pkt-gen.c

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Jan 3 17:34:41 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196465

            Bug ID: 196465
           Summary: clang 3.5: Fix compilation of
                    tools/tools/netmap/pkt-gen.c
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: olivier at cochard.me

Created attachment 151295
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=151295&action=edit
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list