Marked all unsued parameters found by -Werror=unused-parameter with UNUSED()

This commit is contained in:
thorkill 2015-07-02 18:37:08 +02:00
parent 1391b2d7dc
commit f1a9a40c90
21 changed files with 67 additions and 7 deletions

View file

@ -1401,6 +1401,7 @@ void handle_incoming_vpn_data(void *data, int flags) {
socklen_t addrlen = sizeof addr;
node_t *from, *to;
bool direct = false;
UNUSED(flags);
pkt.offset = 0;
int len = recvfrom(ls->udp.fd, DATA(&pkt), MAXSIZE, 0, &addr.sa, &addrlen);
@ -1515,6 +1516,8 @@ skip_harder:
void handle_device_data(void *data, int flags) {
vpn_packet_t packet;
UNUSED(data);
UNUSED(flags);
packet.offset = DEFAULT_PACKET_OFFSET;
packet.priority = 0;