Source-Changes-HG archive

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

[src/trunk]: src/sys/net fix non-diagnostic compilation



details:   https://anonhg.NetBSD.org/src/rev/44d150e68401
branches:  trunk
changeset: 357715:44d150e68401
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Nov 22 17:11:51 2017 +0000

description:
fix non-diagnostic compilation

diffstat:

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

diffs (27 lines):

diff -r c5fc8fefb59c -r 44d150e68401 sys/net/if_spppsubr.c
--- a/sys/net/if_spppsubr.c     Wed Nov 22 16:17:30 2017 +0000
+++ b/sys/net/if_spppsubr.c     Wed Nov 22 17:11:51 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_spppsubr.c,v 1.174 2017/11/22 08:28:56 ozaki-r Exp $         */
+/*     $NetBSD: if_spppsubr.c,v 1.175 2017/11/22 17:11:51 christos Exp $        */
 
 /*
  * Synchronous PPP/Cisco link level subroutines.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.174 2017/11/22 08:28:56 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_spppsubr.c,v 1.175 2017/11/22 17:11:51 christos Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_inet.h"
@@ -4046,7 +4046,7 @@
 static void
 sppp_ipv6cp_TO(void *cookie)
 {
-       struct sppp *sp = cookie;
+       struct sppp *sp __diagused = cookie;
 
        KASSERT(SPPP_WLOCKED(sp));
 }



Home | Main Index | Thread Index | Old Index