aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2021-12-10 11:55:03 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2021-12-10 11:55:03 +0000
commitceed3949bc80bed39f4d99a580beebf960bb61a3 (patch)
tree7c9a5f5c301dbb379e285ab676e99774bc15cd08 /sys
parentbc02034cca45949e5064111213c9fe89a4712d07 (diff)
downloadsrc-ceed3949bc80bed39f4d99a580beebf960bb61a3.tar.gz
src-ceed3949bc80bed39f4d99a580beebf960bb61a3.zip
x86: plug a set-but-not-unused var in native_lapic_ipi_free
Sponsored by: Rubicon Communications, LLC ("Netgate")
Diffstat (limited to 'sys')
-rw-r--r--sys/x86/x86/local_apic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/x86/x86/local_apic.c b/sys/x86/x86/local_apic.c
index c404188e578b..ac3dfa4ca1d3 100644
--- a/sys/x86/x86/local_apic.c
+++ b/sys/x86/x86/local_apic.c
@@ -2178,7 +2178,7 @@ static void
native_lapic_ipi_free(int vector)
{
struct gate_descriptor *ip;
- long func;
+ long func __diagused;
KASSERT(vector >= IPI_DYN_FIRST && vector <= IPI_DYN_LAST,
("%s: invalid vector %d", __func__, vector));