Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/x86 mark diagused variable as such



details:   https://anonhg.NetBSD.org/src/rev/c21351b1845e
branches:  trunk
changeset: 973839:c21351b1845e
user:      para <para%NetBSD.org@localhost>
date:      Tue Jul 14 15:59:21 2020 +0000

description:
mark diagused variable as such

fixing non DIAGNOSTIC builds

diffstat:

 sys/arch/x86/x86/idt.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ca6913cb7c9b -r c21351b1845e sys/arch/x86/x86/idt.c
--- a/sys/arch/x86/x86/idt.c    Tue Jul 14 15:37:40 2020 +0000
+++ b/sys/arch/x86/x86/idt.c    Tue Jul 14 15:59:21 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: idt.c,v 1.13 2020/07/14 00:45:53 yamaguchi Exp $       */
+/*     $NetBSD: idt.c,v 1.14 2020/07/14 15:59:21 para Exp $    */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2000, 2009 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: idt.c,v 1.13 2020/07/14 00:45:53 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: idt.c,v 1.14 2020/07/14 15:59:21 para Exp $");
 
 #include "opt_pcpu_idt.h"
 
@@ -198,7 +198,7 @@
 idt_vec_set(struct idt_vec *iv, int vec, void (*function)(void))
 {
        idt_descriptor_t *idt;
-       char *idt_allocmap = iv->iv_allocmap;
+       char *idt_allocmap __diagused = iv->iv_allocmap;
 
        KASSERT(idt_allocmap[vec] == 1);
        idt = iv->iv_idt;



Home | Main Index | Thread Index | Old Index