Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 03 Jan 2015 17:34:41 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 196465] clang 3.5: Fix compilation of tools/tools/netmap/pkt-gen.c
Message-ID:  <bug-196465-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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@FreeBSD.org
          Reporter: olivier@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-196465-8>