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
This commit is contained in:
parent
a428909068
commit
31d7f0b7b0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=250182
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user