]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/commitdiff
udp_input: fixed unreachable code warning for CHECKSUM_CHECK_UDP==0
authorgoldsimon <goldsimon@gmx.de>
Sun, 25 Mar 2012 15:20:22 +0000 (17:20 +0200)
committergoldsimon <goldsimon@gmx.de>
Sun, 25 Mar 2012 15:20:22 +0000 (17:20 +0200)
src/core/udp.c

index 1086fb03fad0f8fd17833f7cdb023a80f05267f1..bba4a1ce298038de4f91add435397e9d27592e8b 100644 (file)
@@ -472,6 +472,7 @@ udp_input(struct pbuf *p, struct netif *inp)
 end:
   PERF_STOP("udp_input");
   return;
+#if CHECKSUM_CHECK_UDP
 chkerr:
   LWIP_DEBUGF(UDP_DEBUG | LWIP_DBG_LEVEL_SERIOUS,
               ("udp_input: UDP (or UDP Lite) datagram discarded due to failing checksum\n"));
@@ -480,6 +481,7 @@ chkerr:
   snmp_inc_udpinerrors();
   pbuf_free(p);
   PERF_STOP("udp_input");
+#endif /* CHECKSUM_CHECK_UDP */
 }
 
 /**