VirtualBox

Changeset 39059 in vbox


Ignore:
Timestamp:
Oct 20, 2011 2:48:56 PM (13 years ago)
Author:
vboxsync
Message:

unused variable warnings.

Location:
trunk/src/VBox/Devices
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r38805 r39059  
    11701170    /* convert to VGA memory offset */
    11711171    memory_map_mode = (s->gr[6] >> 2) & 3;
     1172#ifndef IN_RC
    11721173    RTGCPHYS GCPhys = addr; /* save original address */
     1174#endif
    11731175
    11741176    addr &= 0x1ffff;
     
    12491251    /* convert to VGA memory offset */
    12501252    memory_map_mode = (s->gr[6] >> 2) & 3;
     1253#ifndef IN_RC
    12511254    RTGCPHYS GCPhys = addr; /* save original address */
     1255#endif
    12521256
    12531257    addr &= 0x1ffff;
     
    41144118
    41154119/**
    4116  * Prints a separator line. 
    4117  * 
     4120 * Prints a separator line.
     4121 *
    41184122 * @param   pHlp                Callback functions for doing output.
    41194123 * @param   cCols               The number of columns.
     
    41224126static void vgaInfoTextPrintSeparatorLine(PCDBGFINFOHLP pHlp, uint32_t cCols, const char *pszTitle)
    41234127{
    4124     if (pszTitle) 
     4128    if (pszTitle)
    41254129    {
    41264130        size_t cchTitle = strlen(pszTitle);
    4127         if (cchTitle + 6 >= cCols) 
     4131        if (cchTitle + 6 >= cCols)
    41284132        {
    41294133            pHlp->pfnPrintf(pHlp, "-- %s --", pszTitle);
     
    41344138            uint32_t cchLeft = (cCols - cchTitle - 2) / 2;
    41354139            cCols -= cchLeft + cchTitle + 2;
    4136             while (cchLeft-- > 0) 
     4140            while (cchLeft-- > 0)
    41374141                pHlp->pfnPrintf(pHlp, "-");
    41384142            pHlp->pfnPrintf(pHlp, " %s ", pszTitle);
     
    41404144    }
    41414145
    4142     while (cCols-- > 0) 
     4146    while (cCols-- > 0)
    41434147        pHlp->pfnPrintf(pHlp, "-");
    41444148    pHlp->pfnPrintf(pHlp, "\n");
     
    41504154 *
    41514155 * @param   pThis       The vga state.
    4152  * @param   pHlp        Callback functions for doing output. 
    4153  * @param   offStart    Where to start dumping (relative to the VRAM). 
    4154  * @param   cbLine      The source line length (aka line_offset). 
    4155  * @param   cCols       The number of columns on the screen. 
     4156 * @param   pHlp        Callback functions for doing output.
     4157 * @param   offStart    Where to start dumping (relative to the VRAM).
     4158 * @param   cbLine      The source line length (aka line_offset).
     4159 * @param   cCols       The number of columns on the screen.
    41564160 * @param   cRows       The number of rows to dump.
    4157  * @param   iScrBegin   The row at which the current screen output starts. 
    4158  * @param   iScrEnd     The row at which the current screen output end 
     4161 * @param   iScrBegin   The row at which the current screen output starts.
     4162 * @param   iScrEnd     The row at which the current screen output end
    41594163 *                      (exclusive).
    41604164 */
    4161 static void vgaInfoTextWorker(PVGASTATE pThis, PCDBGFINFOHLP pHlp, 
     4165static void vgaInfoTextWorker(PVGASTATE pThis, PCDBGFINFOHLP pHlp,
    41624166                              uint32_t offStart, uint32_t cbLine,
    4163                               uint32_t cCols, uint32_t cRows, 
     4167                              uint32_t cCols, uint32_t cRows,
    41644168                              uint32_t iScrBegin, uint32_t iScrEnd)
    41654169{
    41664170    /* Title, */
    41674171    char szTitle[32];
    4168     if (iScrBegin || iScrEnd < cRows) 
    4169         RTStrPrintf(szTitle, sizeof(szTitle), "%ux%u (+%u before, +%u after)", 
     4172    if (iScrBegin || iScrEnd < cRows)
     4173        RTStrPrintf(szTitle, sizeof(szTitle), "%ux%u (+%u before, +%u after)",
    41704174                    cCols, iScrEnd - iScrBegin, iScrBegin, cRows - iScrEnd);
    41714175    else
     
    42184222    PVGASTATE pThis = PDMINS_2_DATA(pDevIns, PVGASTATE);
    42194223
    4220     /* 
     4224    /*
    42214225     * Parse args.
    42224226     */
     
    42244228    if (pszArgs && *pszArgs)
    42254229    {
    4226         if (!strcmp(pszArgs, "all")) 
     4230        if (!strcmp(pszArgs, "all"))
    42274231            fAll = true;
    4228         else if (!strcmp(pszArgs, "scr") || !strcmp(pszArgs, "screen")) 
     4232        else if (!strcmp(pszArgs, "scr") || !strcmp(pszArgs, "screen"))
    42294233            fAll = false;
    42304234        else
     
    42704274
    42714275            if (fAll) {
    4272                 vgaInfoTextWorker(pThis, pHlp, offStart - iScrBegin * cbLine, cbLine, 
     4276                vgaInfoTextWorker(pThis, pHlp, offStart - iScrBegin * cbLine, cbLine,
    42734277                                  cCols, cRows, iScrBegin, iScrBegin + cScrRows);
    42744278            } else {
     
    45604564
    45614565
    4562 /** 
    4563  * Internal vgaPortUpdateDisplayAll worker called under pThis->lock. 
    4564  */ 
     4566/**
     4567 * Internal vgaPortUpdateDisplayAll worker called under pThis->lock.
     4568 */
    45654569static int updateDisplayAll(PVGASTATE pThis)
    45664570{
     
    45924596    PVGASTATE pThis = IDISPLAYPORT_2_VGASTATE(pInterface);
    45934597    PDMDEV_ASSERT_EMT(VGASTATE2DEVINS(pThis));
    4594     PPDMDEVINS pDevIns = pThis->CTX_SUFF(pDevIns);
    45954598
    45964599    /* This is called both in VBVA mode and normal modes. */
     
    46734676
    46744677    /*
    4675      * Allocate the buffer for 32 bits per pixel bitmap                       
    4676      *                                                                       
     4678     * Allocate the buffer for 32 bits per pixel bitmap
     4679     *
    46774680     * Note! The size can't be zero or greater than the size of the VRAM.
    46784681     *       Inconsistent VGA device state can cause the incorrect size values.
     
    47094712            pThis->fRenderVRAM = 1;             /* force the guest VRAM rendering to the given buffer. */
    47104713
    4711             /* 
     4714            /*
    47124715             * Make the screenshot.
    47134716             *
  • trunk/src/VBox/Devices/Network/DrvDedicatedNic.cpp

    r35353 r39059  
    326326    PDRVDEDICATEDNIC pThis = RT_FROM_MEMBER(pInterface, DRVDEDICATEDNIC, CTX_SUFF(INetworkUp));
    327327    /** @todo enable/disable promiscuous mode (should be easy) */
     328    NOREF(pThis);
    328329}
    329330
  • trunk/src/VBox/Devices/PC/DevIoApic.cpp

    r38850 r39059  
    435435    uint8_t  trigger_mode = (uValue >> VBOX_MSI_DATA_TRIGGER_SHIFT) & 0x1;
    436436    uint8_t  delivery_mode = (uValue >> VBOX_MSI_DATA_DELIVERY_MODE_SHIFT) & 0x7;
    437     /**
     437#if 0
     438    /*
    438439     * This bit indicates whether the message should be directed to the
    439440     * processor with the lowest interrupt priority among
     
    441442     */
    442443    uint8_t  redir_hint = (GCAddr >> VBOX_MSI_ADDR_REDIRECTION_SHIFT) & 0x1;
    443 
     444#endif
    444445    int rc = pThis->CTX_SUFF(pIoApicHlp)->pfnApicBusDeliver(pDevIns,
    445446                                                            dest,
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