kernel - Silence warnings from older gcc
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 24 Mar 2011 20:16:52 +0000 (13:16 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 24 Mar 2011 20:16:52 +0000 (13:16 -0700)
* Silence a warning (fatal) during the kernel build when building with
  an older gcc.  The code itself was correct.

sys/platform/pc32/apic/mpapic.c

index 30d0512..870e736 100644 (file)
@@ -1387,6 +1387,9 @@ ioapic_gsi_setup(int gsi)
                return;
        }
 
+       trig = 0;       /* silence older gcc's */
+       pola = 0;       /* silence older gcc's */
+
        for (irq = 0; irq < 16; ++irq) {
                if (gsi == ioapic_conf.ioc_intsrc[irq]) {
                        trig = INTR_TRIGGER_EDGE;