Skip to content

Commit 9243ea8

Browse files
flichtenheldcron2
authored andcommitted
route: Fix a unused-but-set-variable warning on OpenBSD
So we could enable -Werror for OpenBSD builds. Change-Id: Ic971604beb1320d7b9d6121cd8e8519ccc1a7eb9 Signed-off-by: Frank Lichtenheld <[email protected]> Acked-by: MaxF <[email protected]> Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1214 Message-Id: <[email protected]> URL: https://sourceforge.net/p/openvpn/mailman/message/59242246/ Signed-off-by: Gert Doering <[email protected]>
1 parent cb81557 commit 9243ea8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/openvpn/route.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2221,6 +2221,7 @@ delete_route_ipv6(const struct route_ipv6 *r6, const struct tuntap *tt, const st
22212221
device = r6->iface;
22222222
gateway_needed = true;
22232223
}
2224+
(void)device; /* unused on some platforms */
22242225

22252226
/* if we used a gateway on "add route", we also need to specify it on
22262227
* delete, otherwise some OSes will refuse to delete the route

0 commit comments

Comments
 (0)