Bug 196465 - clang 3.5: Fix compilation of tools/tools/netmap/pkt-gen.c
Summary: clang 3.5: Fix compilation of tools/tools/netmap/pkt-gen.c
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-03 17:34 UTC by olivier
Modified: 2018-11-02 11:24 UTC (History)
0 users

See Also:


Attachments
patch file for netmap/pkt-gen with clang 3.5 (318 bytes, patch)
2015-01-03 17:34 UTC, olivier
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.