From af71b7a1ed3a87a3835521c43f68d05042ce904f Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 23 Jan 2015 11:42:12 -0600 Subject: [PATCH] Networking: Eliminate a warning with UDP checksums are suppressed --- net/udp/udp_input.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/udp/udp_input.c b/net/udp/udp_input.c index 3176e7daff8..f699e74ffbe 100644 --- a/net/udp/udp_input.c +++ b/net/udp/udp_input.c @@ -99,7 +99,9 @@ static int udp_input(FAR struct net_driver_s *dev, unsigned int iplen) FAR struct udp_conn_s *conn; unsigned int udpiplen; unsigned int hdrlen; +#ifdef CONFIG_NET_UDP_CHECKSUMS uint16_t chksum; +#endif int ret = OK; /* Update the count of UDP packets received */