From 34cb0eb2ed3b232cbe5e18a9263f0de0ba7dd936 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Thu, 14 Sep 2017 16:41:22 +0000 Subject: [PATCH] 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 --- sys/contrib/octeon-sdk/cvmx-l2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/contrib/octeon-sdk/cvmx-l2c.c b/sys/contrib/octeon-sdk/cvmx-l2c.c index 8a39f9ea95e0..26644e8fd90b 100644 --- a/sys/contrib/octeon-sdk/cvmx-l2c.c +++ b/sys/contrib/octeon-sdk/cvmx-l2c.c @@ -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.