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 Fix GCC warning on NET4501, PR/52451.
details: https://anonhg.NetBSD.org/src/rev/840d03831c65
branches: trunk
changeset: 355637:840d03831c65
user: maxv <maxv%NetBSD.org@localhost>
date: Mon Aug 07 17:31:11 2017 +0000
description:
Fix GCC warning on NET4501, PR/52451.
diffstat:
sys/arch/x86/x86/pmc.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r aaccf9985480 -r 840d03831c65 sys/arch/x86/x86/pmc.c
--- a/sys/arch/x86/x86/pmc.c Mon Aug 07 17:10:09 2017 +0000
+++ b/sys/arch/x86/x86/pmc.c Mon Aug 07 17:31:11 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmc.c,v 1.10 2017/07/12 17:33:29 maxv Exp $ */
+/* $NetBSD: pmc.c,v 1.11 2017/08/07 17:31:11 maxv Exp $ */
/*
* Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -73,7 +73,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmc.c,v 1.10 2017/07/12 17:33:29 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmc.c,v 1.11 2017/08/07 17:31:11 maxv Exp $");
#include "opt_pmc.h"
@@ -138,7 +138,7 @@
pmc_nmi(const struct trapframe *tf, void *dummy)
{
struct cpu_info *ci = curcpu();
- pmc_state_t *pmc;
+ pmc_state_t *pmc = NULL;
pmc_cpu_t *cpu;
uint64_t ctr;
size_t i;
Home |
Main Index |
Thread Index |
Old Index