Source-Changes-HG archive

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

[src/trunk]: src/sys/kern fix DIAGNOSTIC build



details:   https://anonhg.NetBSD.org/src/rev/e9284b99b89c
branches:  trunk
changeset: 931338:e9284b99b89c
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sun Apr 26 21:04:46 2020 +0000

description:
fix DIAGNOSTIC build

diffstat:

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

diffs (27 lines):

diff -r b3c613bcfbc5 -r e9284b99b89c sys/kern/sys_futex.c
--- a/sys/kern/sys_futex.c      Sun Apr 26 20:41:30 2020 +0000
+++ b/sys/kern/sys_futex.c      Sun Apr 26 21:04:46 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sys_futex.c,v 1.1 2020/04/26 18:53:33 thorpej Exp $    */
+/*     $NetBSD: sys_futex.c,v 1.2 2020/04/26 21:04:46 mlelstv Exp $    */
 
 /*-
  * Copyright (c) 2018, 2019, 2020 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_futex.c,v 1.1 2020/04/26 18:53:33 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_futex.c,v 1.2 2020/04/26 21:04:46 mlelstv Exp $");
 
 /*
  * Futexes
@@ -971,7 +971,7 @@
 {
        struct futex_wait *fw, *fw_next;
        unsigned nwoken = 0;
-       int hold_error;
+       int hold_error __diagused;
 
        KASSERT(mutex_owned(&f->fx_qlock));
        KASSERT(f2 == NULL || mutex_owned(&f2->fx_qlock));



Home | Main Index | Thread Index | Old Index