summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ip6addrctl/ip6addrctl.c
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2015-06-20 13:30:09 +0000
committerdim <dim@FreeBSD.org>2015-06-20 13:30:09 +0000
commitd3e521cfec5465a7b25e53b50b03d1597c544243 (patch)
treed0321fe7bc33d5a523ce82e71fc6ec23d37d83f8 /usr.sbin/ip6addrctl/ip6addrctl.c
parentf96f7b3d8f68b5f257892ac5f18061670af64ed4 (diff)
downloadFreeBSD-src-d3e521cfec5465a7b25e53b50b03d1597c544243.zip
FreeBSD-src-d3e521cfec5465a7b25e53b50b03d1597c544243.tar.gz
MFC r284346:
Fix the following clang 3.7.0 warnings in lib/libfetch/http.c: lib/libfetch/http.c:1628:26: error: address of array 'purl->user' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion] aparams.user = purl->user ? ~~~~~~^~~~ ~ lib/libfetch/http.c:1630:30: error: address of array 'purl->pwd' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion] aparams.password = purl->pwd? ~~~~~~^~~~ lib/libfetch/http.c:1657:25: error: address of array 'url->user' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion] aparams.user = url->user ? ~~~~~^~~~ ~ lib/libfetch/http.c:1659:29: error: address of array 'url->pwd' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion] aparams.password = url->pwd ? ~~~~~^~~ ~ lib/libfetch/http.c:1669:25: error: address of array 'url->user' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion] aparams.user = url->user ? ~~~~~^~~~ ~ lib/libfetch/http.c:1671:29: error: address of array 'url->pwd' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion] aparams.password = url->pwd ? ~~~~~^~~ ~ Since url->user and url->pwd are arrays, they can never be NULL, so the checks can be removed. Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D2673
Diffstat (limited to 'usr.sbin/ip6addrctl/ip6addrctl.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud