daemon/network: avoid unused functions and variables

Make sure gcc doesn't produce unused func/var warnings when using
optional compilation. This fixes three such issues on CentOS 7.
32 jobs from nitpicks-tidy in 24 minutes and 28 seconds (queued for 4 seconds)
Status Job ID Name Coverage
  Build
passed #236809
docker linux amd64
build:asan:linux:amd64

00:01:14

passed #236808
docker linux amd64
build:linux:amd64

00:01:17

passed #236810
docker linux amd64
build:turris:omnia

00:01:13

passed #236811
docker linux amd64 allowed to fail
srpm

00:00:36

 
  Test
passed #236820
docker linux amd64
deckard:linux:amd64

00:01:57

passed #236828
privileged
distro:epel-7

00:02:20

passed #236827
privileged
distro:fedora-29

00:02:44

passed #236819
docker
doc

00:00:46

passed #236817
dind
docker:build

00:02:24

passed #236818
docker linux amd64
installcheck:linux:amd64

00:00:45

passed #236821
docker linux amd64
installcheck:valgrind:linux:amd64

00:02:26

passed #236814
docker
lint:c

00:02:27

passed #236815
docker
lint:clang-scan-build

00:01:11

passed #236813
docker
lint:lua

00:00:41

passed #236812
docker linux amd64
lint:pedantic

00:01:33

passed #236822
docker
osx:build

00:02:20

passed #236824
docker linux amd64
pytests:lint

00:00:50

passed #236825
docker linux amd64
pytests:run

00:02:14

passed #236826
docker linux amd64
respdiff:iter:udp:linux:amd64

00:02:00

passed #236816
docker linux amd64
test:linux:amd64

00:01:06

passed #236823
docker linux amd64
test:linux:amd64:valgrind

00:01:32

 
  Extended
passed #236829
docker linux amd64
pytests:extended

00:03:09

failed #236830
respdiff
respdiff:fwd-tls6-kresd.udp6

00:11:50

failed #236831
respdiff
respdiff:fwd-udp6-kresd.udp6

00:09:53

passed #236835
respdiff
respdiff:fwd-udp6-unbound.tcp6

00:20:22

passed #236836
respdiff
respdiff:fwd-udp6-unbound.tls6

00:13:52

failed #236834
respdiff
respdiff:fwd-udp6-unbound.udp6

00:18:52

failed #236833
respdiff
respdiff:iter.tls6

00:18:22

failed #236832
respdiff
respdiff:iter.udp6

00:09:53

passed #236837
respdiff
resperf:fwd-tls6.udp-asan

00:19:48

passed #236838
respdiff
resperf:fwd-udp6.udp-asan

00:06:17

passed #236839
respdiff
resperf:iter.udp-asan

00:14:47

 
Name Stage Failure
failed
respdiff:fwd-udp6-unbound.udp6 Extended
Running after script...
$ cp -t . respdiff_commitdir/$RESPDIFF_TEST/j* ||:
$ cp -t . respdiff_commitdir/*$RESPDIFF_TEST*.png ||:
Uploading artifacts...
Runtime platform arch=amd64 os=linux pid=23744 revision=8bb608ff version=11.7.0
./j*: found 11 matching files
./*.png: found 3 matching files
Uploading artifacts to coordinator... ok id=236834 responseStatus=201 Created token=Ry1LARXr
ERROR: Job failed: exit status 1
failed
respdiff:iter.tls6 Extended
Running after script...
$ cp -t . respdiff_commitdir/$RESPDIFF_TEST/j* ||:
$ cp -t . respdiff_commitdir/*$RESPDIFF_TEST*.png ||:
Uploading artifacts...
Runtime platform arch=amd64 os=linux pid=23676 revision=8bb608ff version=11.7.0
./j*: found 11 matching files
./*.png: found 3 matching files
Uploading artifacts to coordinator... ok id=236833 responseStatus=201 Created token=CaUeT4hb
ERROR: Job failed: exit status 1
failed
respdiff:fwd-udp6-kresd.udp6 Extended
Running after script...
$ cp -t . respdiff_commitdir/$RESPDIFF_TEST/j* ||:
$ cp -t . respdiff_commitdir/*$RESPDIFF_TEST*.png ||:
Uploading artifacts...
Runtime platform arch=amd64 os=linux pid=23259 revision=8bb608ff version=11.7.0
./j*: found 11 matching files
./*.png: found 3 matching files
Uploading artifacts to coordinator... ok id=236831 responseStatus=201 Created token=vn82fp5R
ERROR: Job failed: exit status 1
failed
respdiff:fwd-tls6-kresd.udp6 Extended
Running after script...
$ cp -t . respdiff_commitdir/$RESPDIFF_TEST/j* ||:
$ cp -t . respdiff_commitdir/*$RESPDIFF_TEST*.png ||:
Uploading artifacts...
Runtime platform arch=amd64 os=linux pid=23362 revision=8bb608ff version=11.7.0
./j*: found 11 matching files
./*.png: found 3 matching files
Uploading artifacts to coordinator... ok id=236830 responseStatus=201 Created token=wfJSxtzC
ERROR: Job failed: exit status 1
failed
respdiff:iter.udp6 Extended
Running after script...
$ cp -t . respdiff_commitdir/$RESPDIFF_TEST/j* ||:
$ cp -t . respdiff_commitdir/*$RESPDIFF_TEST*.png ||:
Uploading artifacts...
Runtime platform arch=amd64 os=linux pid=23263 revision=8bb608ff version=11.7.0
./j*: found 11 matching files
./*.png: found 3 matching files
Uploading artifacts to coordinator... ok id=236832 responseStatus=201 Created token=jGyomJvD
ERROR: Job failed: exit status 1