Module Name: src
Committed By: mlelstv
Date: Sun Apr 26 21:04:46 UTC 2020
Modified Files:
src/sys/kern: sys_futex.c
Log Message:
fix DIAGNOSTIC build
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/kern/sys_futex.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/sys_futex.c
diff -u src/sys/kern/sys_futex.c:1.1 src/sys/kern/sys_futex.c:1.2
--- src/sys/kern/sys_futex.c:1.1 Sun Apr 26 18:53:33 2020
+++ src/sys/kern/sys_futex.c Sun Apr 26 21:04:46 2020
@@ -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 @@ futex_wake(struct futex *f, unsigned nwa
{
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));