VirtualBox

Changeset 23993 in vbox for trunk/src/VBox/Devices/PC


Ignore:
Timestamp:
Oct 22, 2009 3:31:02 PM (15 years ago)
Author:
vboxsync
Message:

DevAPIC: gcc warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevAPIC.cpp

    r23986 r23993  
    24022402    lapicDumpVec(dev, lapic, pHlp, 0x100);
    24032403    val = get_highest_priority_int(lapic->isr);
    2404     pHlp->pfnPrintf(pHlp, "    highest = %02X\n", val == ~0 ? 0 : val);
     2404    pHlp->pfnPrintf(pHlp, "    highest = %02X\n", val == ~0U ? 0 : val);
    24052405    pHlp->pfnPrintf(pHlp, "  IRR       : ");
    24062406    lapicDumpVec(dev, lapic, pHlp, 0x200);
    24072407    val = get_highest_priority_int(lapic->irr);
    2408     pHlp->pfnPrintf(pHlp, "    highest = %02X\n", val == ~0 ? 0 : val);
     2408    pHlp->pfnPrintf(pHlp, "    highest = %02X\n", val == ~0U ? 0 : val);
    24092409    val = apic_mem_readl(dev, lapic, 0x320);
    24102410}
     
    24142414{
    24152415    uint32_t        val;
    2416     static char    *dmodes[] = { "Fixed ", "Reserved", "SMI", "Reserved",
    2417                                   "NMI", "INIT", "Reserved", "ExtINT" };
     2416    static const char *dmodes[] = { "Fixed ", "Reserved", "SMI", "Reserved",
     2417                                    "NMI", "INIT", "Reserved", "ExtINT" };
    24182418
    24192419    val = apic_mem_readl(dev, lapic, 0x320);
     
    29832983    for (i = 0; i <= max_redir; ++i)
    29842984    {
    2985         static char *dmodes[] = { "Fixed ", "LowPri", "SMI   ", "Resrvd",
    2986                                   "NMI   ", "INIT  ", "Resrvd", "ExtINT" };
     2985        static const char *dmodes[] = { "Fixed ", "LowPri", "SMI   ", "Resrvd",
     2986                                        "NMI   ", "INIT  ", "Resrvd", "ExtINT" };
    29872987
    29882988        pHlp->pfnPrintf(pHlp, "  %02d   %s      %02X     %d    %s   %d   %s  %s     %s   %3d (%016llX)\n",
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette