mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue