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 Make compile with "options DEBUG".



details:   https://anonhg.NetBSD.org/src/rev/d9f5582ad477
branches:  trunk
changeset: 966213:d9f5582ad477
user:      hannken <hannken%NetBSD.org@localhost>
date:      Fri Oct 18 14:59:22 2019 +0000

description:
Make compile with "options DEBUG".

diffstat:

 sys/arch/x86/x86/multiboot2.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r a61bb4c6e2f6 -r d9f5582ad477 sys/arch/x86/x86/multiboot2.c
--- a/sys/arch/x86/x86/multiboot2.c     Fri Oct 18 12:53:08 2019 +0000
+++ b/sys/arch/x86/x86/multiboot2.c     Fri Oct 18 14:59:22 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: multiboot2.c,v 1.1 2019/10/18 01:38:28 manu Exp $      */
+/*     $NetBSD: multiboot2.c,v 1.2 2019/10/18 14:59:22 hannken Exp $   */
 
 /*-
  * Copyright (c) 2005, 2006 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: multiboot2.c,v 1.1 2019/10/18 01:38:28 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: multiboot2.c,v 1.2 2019/10/18 14:59:22 hannken Exp $");
 
 #include "opt_multiboot.h"
 
@@ -784,6 +784,9 @@
        char *cp;
        uint32_t total_size;
        uint32_t reserved;
+#ifdef DEBUG
+       int i = 0;
+#endif
 
        if (multiboot2_enabled == false)
                goto out;



Home | Main Index | Thread Index | Old Index