Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net/npf npf_packet_handler: fix gcc unused warning.



details:   https://anonhg.NetBSD.org/src/rev/af5258024cd1
branches:  trunk
changeset: 779962:af5258024cd1
user:      rmind <rmind%NetBSD.org@localhost>
date:      Mon Jul 02 06:55:58 2012 +0000

description:
npf_packet_handler: fix gcc unused warning.

diffstat:

 sys/net/npf/npf_handler.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 907f0ff14014 -r af5258024cd1 sys/net/npf/npf_handler.c
--- a/sys/net/npf/npf_handler.c Mon Jul 02 06:52:20 2012 +0000
+++ b/sys/net/npf/npf_handler.c Mon Jul 02 06:55:58 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: npf_handler.c,v 1.18 2012/07/01 23:21:06 rmind Exp $   */
+/*     $NetBSD: npf_handler.c,v 1.19 2012/07/02 06:55:58 rmind Exp $   */
 
 /*-
  * Copyright (c) 2009-2012 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: npf_handler.c,v 1.18 2012/07/01 23:21:06 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: npf_handler.c,v 1.19 2012/07/02 06:55:58 rmind Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -134,7 +134,7 @@
                nbuf = (nbuf_t *)*mp;
                npc.npc_info = 0;
 
-               int ret = npf_cache_all(&npc, nbuf);
+               int ret __unused = npf_cache_all(&npc, nbuf);
                KASSERT((ret & NPC_IPFRAG) == 0);
        }
 



Home | Main Index | Thread Index | Old Index