svn commit: r323587 - head/sys/contrib/octeon-sdk
Ed Maste
emaste at FreeBSD.org
Thu Sep 14 16:41:23 UTC 2017
Author: emaste
Date: Thu Sep 14 16:41:22 2017
New Revision: 323587
URL: https://svnweb.freebsd.org/changeset/base/323587
Log:
octeon sdk: initialize variable to quiet Clang warning
Clang complains "variable 'dummy' is uninitialized when used here".
Reported by: Clang
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Modified:
head/sys/contrib/octeon-sdk/cvmx-l2c.c
Modified: head/sys/contrib/octeon-sdk/cvmx-l2c.c
==============================================================================
--- head/sys/contrib/octeon-sdk/cvmx-l2c.c Thu Sep 14 15:34:45 2017 (r323586)
+++ head/sys/contrib/octeon-sdk/cvmx-l2c.c Thu Sep 14 16:41:22 2017 (r323587)
@@ -339,7 +339,7 @@ uint64_t cvmx_l2c_read_perf(uint32_t counter)
static void fault_in(uint64_t addr, int len)
{
volatile char *ptr;
- volatile char dummy;
+ volatile char dummy = 0;
/*
* Adjust addr and length so we get all cache lines even for
* small ranges spanning two cache lines.
More information about the svn-src-head
mailing list