Mark 'addr' as unused if HAVE_IF_NAMETOINDEX is not defined

Also 'zone' should be initialised to zero.

(cherry picked from commit e7662c4c)
84 jobs for !3851 with 1994-netscope-c-23-50-error-unused-parameter-addr-when-have_if_nametoindex-undefined-on-illumos-v9_11 in 48 minutes and 23 seconds (queued for 27 seconds)
latest detached
Status Job ID Name Coverage
  Precheck
passed #1023134
amd64 linux
autoreconf

00:00:18

passed #1023136
amd64 linux
clang-format

00:00:08

passed #1023137
amd64 linux
coccinelle

00:01:00

passed #1023217
linux amd64
danger

00:00:11

passed #1023135
amd64 linux
misc

00:00:20

failed #1023138
amd64 linux
danger

00:00:16

 
  Build
passed #1023154
amd64 linux
clang:asan

00:04:25

passed #1023158
amd64 linux
clang:buster:amd64

00:01:57

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

00:01:53

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

00:01:47

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

00:04:22

passed #1023156
amd64 linux
clang:tsan

00:02:28

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

00:01:42

passed #1023153
amd64 linux
gcc:asan

00:03:30

passed #1023144
amd64 linux
gcc:buster:amd64

00:01:40

passed #1023140
amd64 linux
gcc:centos6:amd64

00:01:32

passed #1023141
amd64 linux
gcc:centos7:amd64

00:01:42

passed #1023142
amd64 linux
gcc:centos8:amd64

00:01:43

passed #1023150
amd64 linux
gcc:fedora32:amd64

00:01:37

passed #1023152
amd64 linux
gcc:focal:amd64

00:01:40

passed #1023157
amd64 linux
gcc:mutexatomics

00:01:42

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

00:01:39

passed #1023159
amd64 linux
gcc:pkcs11

00:01:44

passed #1023145
amd64 linux
gcc:sid:amd64

00:02:05

passed #1023147
arm64 linux
gcc:sid:arm64

00:08:13

passed #1023148
i386 linux
gcc:sid:i386

00:01:47

passed #1023143
amd64 linux
gcc:stretch:amd64

00:01:59

passed #1023155
amd64 linux
gcc:tsan

00:02:04

passed #1023149
amd64 linux
gcc:tumbleweed:amd64

00:01:34

passed #1023151
amd64 linux
gcc:xenial:amd64

00:01:54

passed #1023164
amd64 windows
msvc:windows:amd64

00:00:59

passed #1023163
amd64 linux
nolibtool:sid:amd64

00:02:11

 
  Unit
passed #1023179
amd64 linux
unit:clang:asan

00:01:16

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

00:00:30

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

00:01:07

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

00:00:53

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

00:04:44

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

00:00:31

passed #1023178
amd64 linux
unit:gcc:asan

00:01:14

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

00:00:31

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

00:00:35

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

00:00:37

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

00:00:35

passed #1023175
amd64 linux
unit:gcc:fedora32:amd64

00:00:31

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

00:00:32

passed #1023182
amd64 linux
unit:gcc:mutexatomics

00:00:30

passed #1023184
amd64 linux
unit:gcc:pkcs11

00:00:37

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

00:00:29

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

00:20:12

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

00:00:35

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

00:00:30

failed #1023180
amd64 linux allowed to fail
unit:gcc:tsan

00:10:42

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

00:00:37

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

00:00:35

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

00:00:48

 
  System
passed #1023202
amd64 linux
system:clang:asan

00:09:00

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

00:07:03

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

00:08:36

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

00:07:55

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

00:32:35

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

00:07:35

passed #1023201
amd64 linux
system:gcc:asan

00:09:19

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

00:07:18

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

00:07:20

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

00:07:15

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

00:07:16

passed #1023198
amd64 linux
system:gcc:fedora32:amd64

00:07:04

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

00:07:10

passed #1023205
amd64 linux
system:gcc:mutexatomics

00:07:21

passed #1023207
amd64 linux
system:gcc:pkcs11

00:07:59

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

00:07:11

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

00:36:51

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

00:07:14

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

00:07:07

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

00:26:25

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

00:06:59

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

00:06:46

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

00:07:13

failed #1023209
amd64 libvirt
system:clang:freebsd12.1:amd64

00:08:18

 
  Docs
passed #1023211
amd64 linux
docs

00:00:27

 
  Postcheck
passed #1023215
amd64 linux
cppcheck

00:00:28

passed #1023212
amd64 linux
flake8

00:00:18

passed #1023213
amd64 linux
pylint

00:00:23

passed #1023214
amd64 linux
scan-build

00:08:23

 
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 3846 matching files and directories

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

tsan/: found 387 matching files and directories

Uploading artifacts as "archive" to coordinator... ok
id=1023204 responseStatus=201 Created token=7hPTZX2t
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 9 matching files and directories

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

tsan/: found 89 matching files and directories

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

tsan/: found 13 matching files and directories

kyua.log: found 1 matching files and directories

kyua.results: found 1 matching files and directories

kyua_html/: found 69 matching files and directories

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

tsan/: found 15 matching files and directories

kyua.log: found 1 matching files and directories

kyua.results: found 1 matching files and directories

kyua_html/: found 69 matching files and directories

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