Created attachment 154040 [details] Remove unnecessary null checks During the exp-run in bug 197395, it was found that net/ladvd gives errors with clang 3.6.0: http://package18.nyi.freebsd.org/data/headamd64PR197395-default/2015-02-11_23h04m51s/logs/errors/ladvd-1.0.4_1.log This error is because ladvd defines a few functions using __attribute__((nonnull)), then proceeds to check the parameters for being NULL anyway. This is silly, so remove the checks.
That looks like a sensible patch. Should I submit a port-update or are you able to handle that part as well?
A commit references this bug: Author: sunpoet Date: Sun Mar 22 15:44:54 UTC 2015 New revision: 381932 URL: https://svnweb.freebsd.org/changeset/ports/381932 Log: - Fix build with Clang 3.6.0 PR: 198437 Submitted by: dim Approved by: <sten@blinkenlights.nl> (maintainer) Changes: head/net/ladvd/files/patch-src__util.c
Committed. Thanks!