Only declare the origpriority variable if we support priority.
authorEtienne Dechamps <etienne@edechamps.fr>
Sat, 12 Jul 2014 11:49:59 +0000 (12:49 +0100)
committerEtienne Dechamps <etienne@edechamps.fr>
Sat, 12 Jul 2014 12:33:59 +0000 (13:33 +0100)
commitd7f89a79448dd1633342ea5ee344d403c8e6890b
tree8c785091e6b02a9866ea77abea1a698ff10297fc
parent45a30f71572fab8e73c456737b7506b2cf12be25
Only declare the origpriority variable if we support priority.

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