From 51c2fe321b5a6554f93a274640ee86590d75108c Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 24 Oct 2017 15:46:32 -0600 Subject: [PATCH] net/icmp: Eliminate a warning. --- net/icmp/icmp_input.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/net/icmp/icmp_input.c b/net/icmp/icmp_input.c index 8e9c289a49..8d26f491ef 100644 --- a/net/icmp/icmp_input.c +++ b/net/icmp/icmp_input.c @@ -2,7 +2,8 @@ * net/icmp/icmp_input.c * Handling incoming ICMP input * - * Copyright (C) 2007-2009, 2012, 2014-2015 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009, 2012, 2014-2015, 2017 Gregory Nutt. All rights + * reserved. * Author: Gregory Nutt * * Adapted for NuttX from logic in uIP which also has a BSD-like license: @@ -333,11 +334,15 @@ void icmp_input(FAR struct net_driver_s *dev) return; typeerr: + #ifdef CONFIG_NET_STATISTICS g_netstats.icmp.typeerr++; #endif +#ifdef CONFIG_NET_ICMP_SOCKET drop: +#endif + #ifdef CONFIG_NET_STATISTICS g_netstats.icmp.drop++; #endif