From d586fc165cfb286d88b28956eb748257b0917cb4 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Wed, 13 Apr 2022 16:08:23 -0700 Subject: [PATCH] i386 getmemsize: Use __diagused for a variable only used in KASSERT(). --- sys/i386/i386/machdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c index 9fee973d9e82..43c18042748e 100644 --- a/sys/i386/i386/machdep.c +++ b/sys/i386/i386/machdep.c @@ -903,7 +903,7 @@ getmemsize(int first) u_long memtest; vm_paddr_t physmap[PHYS_AVAIL_ENTRIES]; quad_t dcons_addr, dcons_size, physmem_tunable; - int hasbrokenint12, i, res; + int hasbrokenint12, i, res __diagused; u_int extmem; struct vm86frame vmf; struct vm86context vmc;