Avoid gcc warning

This commit is contained in:
Markus Moeller 2020-01-12 23:00:24 +00:00
parent 7d7d50c287
commit 878b0e9e45

View File

@ -475,6 +475,8 @@ struct upstream *upstream_get (struct request_s *request, struct upstream *up)
up->domain ? up->domain : "NULL"); up->domain ? up->domain : "NULL");
if (up->ip && up->mask) { if (up->ip && up->mask) {
struct in_addr tmp1, tmp2; struct in_addr tmp1, tmp2;
(void)(tmp1); /* Avoid gcc warning */
(void)(tmp2); /* Avoid gcc warning */
tmp1.s_addr = htonl (up->ip); tmp1.s_addr = htonl (up->ip);
tmp2.s_addr = htonl (up->mask); tmp2.s_addr = htonl (up->mask);
DEBUG2 ("Check against ip/mask: %s/%s\n", DEBUG2 ("Check against ip/mask: %s/%s\n",