Mark 'addr' as unused if HAVE_IF_NAMETOINDEX is not defined

Also 'zone' should be initialised to zero.

(cherry picked from commit e7662c4c)
83 jobs for !3850 with 1994-netscope-c-23-50-error-unused-parameter-addr-when-have_if_nametoindex-undefined-on-illumos-v9_16 in 32 minutes and 29 seconds (queued for 9 seconds)
latest detached
Status Job ID Name Coverage
  Precheck
passed #1023051
amd64 linux
autoreconf

00:00:13

passed #1023053
amd64 linux
clang-format

00:00:15

passed #1023054
amd64 linux
coccinelle

00:03:24

passed #1023216
linux amd64
danger

00:00:17

passed #1023052
amd64 linux
misc

00:00:11

failed #1023055
amd64 linux
danger

00:00:18

 
  Build
passed #1023070
amd64 linux
clang:asan

00:04:03

passed #1023074
amd64 linux
clang:buster:amd64

00:01:56

passed #1023077
amd64 libvirt
clang:freebsd11.4:amd64

00:01:59

passed #1023078
amd64 libvirt
clang:freebsd12.1:amd64

00:01:43

passed #1023079
amd64 libvirt
clang:openbsd6.7:amd64

00:04:07

passed #1023072
amd64 linux
clang:tsan

00:02:28

passed #1023056
amd64 linux
gcc:alpine3.12:amd64

00:01:48

passed #1023069
amd64 linux
gcc:asan

00:03:18

passed #1023061
amd64 linux
gcc:buster:amd64

00:01:37

passed #1023057
amd64 linux
gcc:centos6:amd64

00:01:27

passed #1023058
amd64 linux
gcc:centos7:amd64

00:01:36

passed #1023059
amd64 linux
gcc:centos8:amd64

00:01:42

passed #1023068
amd64 linux
gcc:focal:amd64

00:01:41

passed #1023073
amd64 linux
gcc:mutexatomics

00:01:39

passed #1023063
amd64 linux
gcc:out-of-tree

00:01:33

passed #1023062
amd64 linux
gcc:sid:amd64

00:02:06

passed #1023064
arm64 linux
gcc:sid:arm64

00:03:06

passed #1023065
i386 linux
gcc:sid:i386

00:01:46

passed #1023075
amd64 linux
gcc:softhsm2.4

00:01:41

passed #1023076
amd64 linux
gcc:softhsm2.6

00:01:40

passed #1023060
amd64 linux
gcc:stretch:amd64

00:02:00

passed #1023071
amd64 linux
gcc:tsan

00:01:59

passed #1023066
amd64 linux
gcc:tumbleweed:amd64

00:01:37

passed #1023067
amd64 linux
gcc:xenial:amd64

00:01:51

passed #1023081
amd64 windows
msvc:windows:amd64

00:01:08

passed #1023080
amd64 linux
nolibtool:sid:amd64

00:02:38

 
  Unit
passed #1023095
amd64 linux
unit:clang:asan

00:00:54

passed #1023099
amd64 linux
unit:clang:buster:amd64

00:00:39

passed #1023102
amd64 libvirt
unit:clang:freebsd11.4:amd64

00:01:00

passed #1023103
amd64 libvirt
unit:clang:freebsd12.1:amd64

00:01:03

failed #1023097
amd64 linux allowed to fail
unit:clang:tsan

00:01:32

passed #1023082
amd64 linux
unit:gcc:alpine3.12:amd64

00:00:36

passed #1023094
amd64 linux
unit:gcc:asan

00:00:49

passed #1023087
amd64 linux
unit:gcc:buster:amd64

00:00:37

passed #1023083
amd64 linux
unit:gcc:centos6:amd64

00:00:37

passed #1023084
amd64 linux
unit:gcc:centos7:amd64

00:00:38

passed #1023085
amd64 linux
unit:gcc:centos8:amd64

00:00:38

passed #1023093
amd64 linux
unit:gcc:focal:amd64

00:00:34

passed #1023098
amd64 linux
unit:gcc:mutexatomics

00:00:36

passed #1023088
amd64 linux
unit:gcc:sid:amd64

00:00:37

passed #1023089
arm64 linux
unit:gcc:sid:arm64

00:17:15

passed #1023090
i386 linux
unit:gcc:sid:i386

00:00:38

passed #1023100
amd64 linux
unit:gcc:softhsm2.4

00:00:34

passed #1023101
amd64 linux
unit:gcc:softhsm2.6

00:00:36

passed #1023086
amd64 linux
unit:gcc:stretch:amd64

00:00:38

passed #1023096
amd64 linux
unit:gcc:tsan

00:01:42

passed #1023091
amd64 linux
unit:gcc:tumbleweed:amd64

00:00:36

passed #1023092
amd64 linux
unit:gcc:xenial:amd64

00:00:41

passed #1023104
amd64 linux
unit:nolibtool:sid:amd64

00:00:53

 
  System
passed #1023118
amd64 linux
system:clang:asan

00:12:31

passed #1023122
amd64 linux
system:clang:buster:amd64

00:11:28

passed #1023125
amd64 libvirt
system:clang:freebsd11.4:amd64

00:13:08

passed #1023126
amd64 libvirt
system:clang:freebsd12.1:amd64

00:12:51

failed #1023120
amd64 linux allowed to fail
system:clang:tsan

00:15:49

passed #1023105
amd64 linux
system:gcc:alpine3.12:amd64

00:11:26

passed #1023117
amd64 linux
system:gcc:asan

00:12:54

passed #1023110
amd64 linux
system:gcc:buster:amd64

00:11:38

passed #1023106
amd64 linux
system:gcc:centos6:amd64

00:11:02

passed #1023107
amd64 linux
system:gcc:centos7:amd64

00:10:31

passed #1023108
amd64 linux
system:gcc:centos8:amd64

00:11:29

passed #1023116
amd64 linux
system:gcc:focal:amd64

00:11:18

passed #1023121
amd64 linux
system:gcc:mutexatomics

00:09:56

passed #1023111
amd64 linux
system:gcc:sid:amd64

00:11:12

passed #1023112
arm64 linux
system:gcc:sid:arm64

00:28:51

passed #1023113
i386 linux
system:gcc:sid:i386

00:10:59

passed #1023123
amd64 linux
system:gcc:softhsm2.4

00:10:54

passed #1023124
amd64 linux
system:gcc:softhsm2.6

00:12:01

passed #1023109
amd64 linux
system:gcc:stretch:amd64

00:10:51

failed #1023119
amd64 linux allowed to fail
system:gcc:tsan

00:15:05

passed #1023114
amd64 linux
system:gcc:tumbleweed:amd64

00:11:32

passed #1023115
amd64 linux
system:gcc:xenial:amd64

00:09:32

passed #1023127
amd64 linux
system:nolibtool:sid:amd64

00:11:54

 
  Docs
passed #1023128
amd64 linux
docs

00:02:25

 
  Postcheck
passed #1023132
amd64 linux
cppcheck

00:00:21

passed #1023129
amd64 linux
flake8

00:00:18

passed #1023130
amd64 linux
pylint

00:00:21

passed #1023131
amd64 linux
scan-build

00:09:33

 
Name Stage Failure
failed
system:clang:tsan System
Running after script...
$ find bin -name 'tsan.*' -exec python3 util/parse_tsan.py {} \;
Uploading artifacts for failed job
Uploading artifacts...
bin/tests/system/*/tsan.*: found 19 matching files and directories

bin/tests/system/*/*/tsan.*: found 221 matching files and directories

tsan/: found 158 matching files and directories

Uploading artifacts as "archive" to coordinator... ok
id=1023120 responseStatus=201 Created token=kkp8STpt
ERROR: Job failed: exit code 1
failed
system:gcc:tsan System
Running after script...
$ find bin -name 'tsan.*' -exec python3 util/parse_tsan.py {} \;
Uploading artifacts for failed job
Uploading artifacts...
bin/tests/system/*/tsan.*: found 19 matching files and directories

bin/tests/system/*/*/tsan.*: found 222 matching files and directories

tsan/: found 178 matching files and directories

Uploading artifacts as "archive" to coordinator... ok
id=1023119 responseStatus=201 Created token=mtbuhH7Y
ERROR: Job failed: exit code 1
failed
unit:clang:tsan Unit
Uploading artifacts for failed job
Uploading artifacts...
lib/*/tests/tsan.*: found 1 matching files and directories

tsan/: found 10 matching files and directories

kyua.log: found 1 matching files and directories

kyua.results: found 1 matching files and directories

kyua_html/: found 70 matching files and directories

Uploading artifacts as "archive" to coordinator... ok
id=1023097 responseStatus=201 Created token=ZScHqhqT
ERROR: Job failed: exit code 1