From d7f89a79448dd1633342ea5ee344d403c8e6890b Mon Sep 17 00:00:00 2001 From: Etienne Dechamps Date: Sat, 12 Jul 2014 12:49:59 +0100 Subject: [PATCH] Only declare the origpriority variable if we support priority. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This fixes the following compiler warning when building for Windows: net_packet.c: In function ‘send_udppacket’: net_packet.c:633:6: error: unused variable ‘origpriority’ [-Werror=unused-variable] int origpriority = origpkt->priority; ^ --- src/net_packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net_packet.c b/src/net_packet.c index 6b3183da..b7ef5193 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -629,8 +629,8 @@ static void send_udppacket(node_t *n, vpn_packet_t *origpkt) { size_t outlen; #if defined(SOL_IP) && defined(IP_TOS) static int priority = 0; -#endif int origpriority = origpkt->priority; +#endif if(!n->status.reachable) { logger(DEBUG_TRAFFIC, LOG_INFO, "Trying to send UDP packet to unreachable node %s (%s)", n->name, n->hostname); -- 2.20.1