Date: Thu, 14 Sep 2017 16:41:22 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r323587 - head/sys/contrib/octeon-sdk Message-ID: <201709141641.v8EGfMCn099690@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709141641.v8EGfMCn099690>