VirtualBox

Changeset 62965 in vbox for trunk/src/VBox/Devices/EFI


Ignore:
Timestamp:
Aug 4, 2016 9:57:20 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109568
Message:

Devices: warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/DevEFI.cpp

    r61621 r62965  
    5454
    5555/* EFI includes */
     56#ifdef _MSC_VER
     57# pragma warning(push)
     58# pragma warning(disable:4668)
     59#endif
    5660#include <ProcessorBind.h>
     61#ifdef _MSC_VER
     62# pragma warning(pop)
     63#endif
    5764#include <Common/UefiBaseTypes.h>
    5865#include <Common/PiFirmwareVolume.h>
     
    10501057static DECLCALLBACK(void) efiInfoNvram(PPDMDEVINS pDevIns, PCDBGFINFOHLP pHlp, const char *pszArgs)
    10511058{
     1059    RT_NOREF(pszArgs);
    10521060    PDEVEFI pThis = PDMINS_2_DATA(pDevIns, PDEVEFI);
    10531061    PDMCritSectEnter(pDevIns->pCritSectRoR3, VERR_IGNORED);
     
    12131221        RTStrmClose(pStrm);
    12141222    }
     1223# else
     1224    RT_NOREF(pThis, pszFormat);
    12151225# endif
    12161226}
     
    12291239static int efiPortImageEventWrite(PDEVEFI pThis, uint32_t u32, unsigned cb)
    12301240{
     1241    RT_NOREF(cb);
    12311242    switch (u32 & EFI_IMAGE_EVT_CMD_MASK)
    12321243    {
     
    13421353static DECLCALLBACK(int) efiIOPortRead(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t *pu32, unsigned cb)
    13431354{
     1355    RT_NOREF(pvUser);
    13441356    PDEVEFI pThis = PDMINS_2_DATA(pDevIns, PDEVEFI);
    13451357    Log4(("EFI in: %x %x\n", Port, cb));
     
    14271439static DECLCALLBACK(int) efiIOPortWrite(PPDMDEVINS pDevIns, void *pvUser, RTIOPORT Port, uint32_t u32, unsigned cb)
    14281440{
     1441    RT_NOREF(pvUser);
    14291442    PDEVEFI pThis = PDMINS_2_DATA(pDevIns, PDEVEFI);
    14301443    int     rc    = VINF_SUCCESS;
     
    17691782static DECLCALLBACK(void) efiMemSetup(PPDMDEVINS pDevIns, PDMDEVMEMSETUPCTX enmCtx)
    17701783{
     1784    RT_NOREF(enmCtx);
    17711785    PDEVEFI pThis = PDMINS_2_DATA(pDevIns, PDEVEFI);
    17721786
     
    19541968    AssertLogRelMsgReturn(!(pThis->cbEfiRom & PAGE_OFFSET_MASK), ("%RX64\n", pThis->cbEfiRom), VERR_INVALID_PARAMETER);
    19551969
    1956     uint8_t const * const pbFwVolEnd = pThis->pu8EfiRom + pFwVolHdr->FvLength;
    19571970    pThis->GCLoadAddress = UINT32_C(0xfffff000) - pThis->cbEfiRom + PAGE_SIZE;
    19581971
     
    19691982static int efiLoadRom(PDEVEFI pThis, PCFGMNODE pCfg)
    19701983{
     1984    RT_NOREF(pCfg);
     1985
    19711986    /*
    19721987     * Read the entire firmware volume into memory.
     
    21042119static DECLCALLBACK(int)  efiConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg)
    21052120{
     2121    RT_NOREF(iInstance);
     2122    PDMDEV_CHECK_VERSIONS_RETURN(pDevIns);
    21062123    PDEVEFI     pThis = PDMINS_2_DATA(pDevIns, PDEVEFI);
    21072124    int         rc;
    2108     PDMDEV_CHECK_VERSIONS_RETURN(pDevIns);
    21092125
    21102126    Assert(iInstance == 0);
Note: See TracChangeset for help on using the changeset viewer.

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