summaryrefslogtreecommitdiffstats
path: root/sys/dev/hwpmc
diff options
context:
space:
mode:
authordavide <davide@FreeBSD.org>2013-05-02 14:55:21 +0000
committerdavide <davide@FreeBSD.org>2013-05-02 14:55:21 +0000
commit0a4bbe752e905cd1aa3220882176732c1fc9d1d2 (patch)
tree1998e314a621ee6c674d85ad1bc7fa5a7cd3503c /sys/dev/hwpmc
parent369aaa137fa560e2c940db2b0bdc8f9d4bdfff49 (diff)
downloadFreeBSD-src-0a4bbe752e905cd1aa3220882176732c1fc9d1d2.zip
FreeBSD-src-0a4bbe752e905cd1aa3220882176732c1fc9d1d2.tar.gz
Suppress a GCC warning. This warning is actually bogus and newer GCC
versions than the one in base (dim@ mentioned he tried on 4.7.3 and 4.8.1) do not whine about it, so, at some point this workaround will be reverted. Reported by: ache Discussed with: dim
Diffstat (limited to 'sys/dev/hwpmc')
-rw-r--r--sys/dev/hwpmc/hwpmc_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/hwpmc/hwpmc_core.c b/sys/dev/hwpmc/hwpmc_core.c
index 1f0b784..ddc3c0c 100644
--- a/sys/dev/hwpmc/hwpmc_core.c
+++ b/sys/dev/hwpmc/hwpmc_core.c
@@ -1945,7 +1945,7 @@ iap_allocate_pmc(int cpu, int ri, struct pmc *pm,
caps = a->pm_caps;
if ((IAP_PMC_CAPS & caps) != caps)
return (EPERM);
-
+ map = 0; /* XXX: silent GCC warning */
arch = iap_is_event_architectural(pm->pm_event, &map);
if (arch == EV_IS_ARCH_NOTSUPP)
return (EOPNOTSUPP);
OpenPOWER on IntegriCloud