Summary: | clang 3.5: Fix compilation of tools/tools/netmap/pkt-gen.c | ||||||
---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | olivier | ||||
Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||
Status: | Closed Overcome By Events | ||||||
Severity: | Affects Some People | ||||||
Priority: | --- | ||||||
Version: | CURRENT | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
This seems to have been fixed by base r278641. |
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.