Source-Changes-HG archive

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

[src/trunk]: src/sys/kern kern_event.c: Mark KASSERT-only static function as ...



details:   https://anonhg.NetBSD.org/src/rev/61d7068bfcdb
branches:  trunk
changeset: 368651:61d7068bfcdb
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Jul 24 19:23:44 2022 +0000

description:
kern_event.c: Mark KASSERT-only static function as __diagused.

Otherwise clang objects with -Wunneeded-internal-declaration.

diffstat:

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

diffs (27 lines):

diff -r 3d5ccde5d23b -r 61d7068bfcdb sys/kern/kern_event.c
--- a/sys/kern/kern_event.c     Sun Jul 24 18:04:48 2022 +0000
+++ b/sys/kern/kern_event.c     Sun Jul 24 19:23:44 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_event.c,v 1.145 2022/07/19 01:03:05 thorpej Exp $ */
+/*     $NetBSD: kern_event.c,v 1.146 2022/07/24 19:23:44 riastradh Exp $       */
 
 /*-
  * Copyright (c) 2008, 2009, 2021 The NetBSD Foundation, Inc.
@@ -63,7 +63,7 @@
 #endif /* _KERNEL_OPT */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_event.c,v 1.145 2022/07/19 01:03:05 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_event.c,v 1.146 2022/07/24 19:23:44 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -169,7 +169,7 @@
        mutex_exit(&KNOTE_TO_KIMPL(kn)->ki_foplock);
 }
 
-static inline bool
+static inline bool __diagused
 knote_foplock_owned(struct knote *kn)
 {
        return mutex_owned(&KNOTE_TO_KIMPL(kn)->ki_foplock);



Home | Main Index | Thread Index | Old Index