Source-Changes-HG archive

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

[src/trunk]: src/sys/net/npf Silence gcc in npf_recache().



details:   https://anonhg.NetBSD.org/src/rev/d00c31423c33
branches:  trunk
changeset: 783486:d00c31423c33
user:      rmind <rmind%NetBSD.org@localhost>
date:      Mon Dec 24 23:11:25 2012 +0000

description:
Silence gcc in npf_recache().

diffstat:

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

diffs (27 lines):

diff -r b2e8c042ad93 -r d00c31423c33 sys/net/npf/npf_inet.c
--- a/sys/net/npf/npf_inet.c    Mon Dec 24 22:12:28 2012 +0000
+++ b/sys/net/npf/npf_inet.c    Mon Dec 24 23:11:25 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: npf_inet.c,v 1.19 2012/12/24 19:05:43 rmind Exp $      */
+/*     $NetBSD: npf_inet.c,v 1.20 2012/12/24 23:11:25 rmind Exp $      */
 
 /*-
  * Copyright (c) 2009-2012 The NetBSD Foundation, Inc.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: npf_inet.c,v 1.19 2012/12/24 19:05:43 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: npf_inet.c,v 1.20 2012/12/24 23:11:25 rmind Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -487,7 +487,7 @@
 void
 npf_recache(npf_cache_t *npc, nbuf_t *nbuf)
 {
-       const int mflags = npc->npc_info & (NPC_IP46 | NPC_LAYER4);
+       const int mflags __unused = npc->npc_info & (NPC_IP46 | NPC_LAYER4);
        int flags;
 
        nbuf_reset(nbuf);



Home | Main Index | Thread Index | Old Index