VirtualBox

Changeset 24678 in vbox for trunk/src


Ignore:
Timestamp:
Nov 15, 2009 4:07:51 PM (15 years ago)
Author:
vboxsync
Message:

Misc: Shut up annoying gcc warnings on darwin.

Location:
trunk/src/VBox
Files:
10 edited

Legend:

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

    r24156 r24678  
    11391139        for(uint32_t i = 0; i < size; ++i)
    11401140        {
    1141             HGSMIHOSTFIFOENTRY *pFifoEntry;
     1141            HGSMIHOSTFIFOENTRY *pFifoEntry = NULL;  /* initialized to shut up gcc */
    11421142            rc = hgsmiHostLoadFifoEntryLocked (pIns, &pFifoEntry, pSSM); AssertRC(rc);
    11431143            if (RT_SUCCESS (rc))
  • trunk/src/VBox/Devices/Storage/DrvSCSI.cpp

    r24245 r24678  
    610610    int iTxDir;
    611611    int rcCompletion;
    612     uint64_t uOffset;
    613     uint32_t cbToTransfer;
    614     uint32_t cSegmentsLeft;
     612    uint64_t uOffset       = UINT64_MAX;    /* initialized to shut up gcc warnings. */
     613    uint32_t cbToTransfer  = UINT32_MAX;    /* ditto */
     614    uint32_t cSegmentsLeft = UINT32_MAX;    /* ditto */
    615615
    616616    LogFlowFunc(("Entered\n"));
  • trunk/src/VBox/Devices/Storage/VBoxHDDFormats/AppleDiskImage/VBoxDMG.cpp

    r23973 r24678  
    465465
    466466
    467 /** @copydoc VBOXHDDBACKEND::pfnOpen */
     467/** @copydoc VBOXHDDBACKEND::pfnClose */
    468468static DECLCALLBACK(int) vboxdmgClose(void *pvBackendData, bool fDelete)
    469469{
  • trunk/src/VBox/Devices/Storage/VmdkHDDCore.cpp

    r24256 r24678  
    20752075
    20762076    /* Get image creation type and determine image flags. */
    2077     const char *pszCreateType;
     2077    const char *pszCreateType = NULL;   /* initialized to make gcc shut up */
    20782078    rc = vmdkDescBaseGetStr(pImage, &pImage->Descriptor, "createType",
    20792079                            &pszCreateType);
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageStorageController.cpp

    r24505 r24678  
    6060int handleStorageAttach(HandlerArg *a)
    6161{
    62     int c;
     62    int c = VERR_INTERNAL_ERROR;        /* initialized to shut up gcc */
    6363    HRESULT rc = S_OK;
    6464    ULONG port   = ~0U;
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxFrameBuffer.cpp

    r22333 r24678  
    382382                break;
    383383            default:
     384                format = QImage::Format_Invalid; /* set it to something so gcc keeps quiet. */
    384385                remind = true;
    385386                fallback = true;
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp

    r24628 r24678  
    39833983#else
    39843984
     3985    NOREF (aWId);
    39853986    NOREF (aSwitchDesktop);
    39863987    AssertFailed();
  • trunk/src/VBox/Main/darwin/NetIf-darwin.cpp

    r23144 r24678  
    281281    char *pBuf, *pNext;
    282282    int aiMib[6];
    283     unsigned short u16DefaultIface;
     283    unsigned short u16DefaultIface = 0; /* initialized to shut up gcc */
    284284
    285285    /* Get the index of the interface associated with default route. */
  • trunk/src/VBox/Runtime/common/ldr/ldrELFRelocatable.cpp.h

    r21337 r24678  
    10261026    if (RT_SUCCESS(rc))
    10271027    {
    1028         RTLDRARCH enmArchImage;
     1028        RTLDRARCH enmArchImage = RTLDRARCH_INVALID; /* shut up gcc */
    10291029        rc = RTLDRELF_NAME(ValidateElfHeader)(&pModElf->Ehdr, pszLogName, cbRawImage, &enmArchImage);
    10301030        if (RT_SUCCESS(rc))
  • trunk/src/VBox/Runtime/common/string/base64.cpp

    r21337 r24678  
    252252     * Process input in groups of 4 input / 3 output chars.
    253253     */
    254     uint8_t     u8Trio[3];
     254    uint8_t     u8Trio[3] = { 0, 0, 0 }; /* shuts up gcc */
    255255    uint8_t    *pbData    = (uint8_t *)pvData;
    256256    uint8_t     u8        = BASE64_INVALID;
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