Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/acpi Appease GCC maybe-uninitialized for optimizatio...



details:   https://anonhg.NetBSD.org/src/rev/c9348ab3d970
branches:  trunk
changeset: 964658:c9348ab3d970
user:      rin <rin%NetBSD.org@localhost>
date:      Sun Aug 11 06:46:35 2019 +0000

description:
Appease GCC maybe-uninitialized for optimization level -Os on amd64.

diffstat:

 sys/dev/acpi/pckbc_acpi.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f2208a6348b2 -r c9348ab3d970 sys/dev/acpi/pckbc_acpi.c
--- a/sys/dev/acpi/pckbc_acpi.c Sun Aug 11 06:04:16 2019 +0000
+++ b/sys/dev/acpi/pckbc_acpi.c Sun Aug 11 06:46:35 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pckbc_acpi.c,v 1.36 2017/10/28 04:53:55 riastradh Exp $        */
+/*     $NetBSD: pckbc_acpi.c,v 1.37 2019/08/11 06:46:35 rin Exp $      */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pckbc_acpi.c,v 1.36 2017/10/28 04:53:55 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pckbc_acpi.c,v 1.37 2019/08/11 06:46:35 rin Exp $");
 
 #include <sys/param.h>
 #include <sys/callout.h>
@@ -234,7 +234,7 @@
 static void
 pckbc_acpi_intr_establish(struct pckbc_softc *sc, pckbc_slot_t slot)
 {
-       struct pckbc_acpi_softc *psc;
+       struct pckbc_acpi_softc *psc = NULL; /* XXX: gcc */
        isa_chipset_tag_t ic = NULL;
        void *rv = NULL;
        int irq = 0, ist = 0; /* XXX: gcc */



Home | Main Index | Thread Index | Old Index