VirtualBox

Changeset 62450 in vbox for trunk/src


Ignore:
Timestamp:
Jul 22, 2016 3:04:27 PM (8 years ago)
Author:
vboxsync
Message:

bldprogs: MSC level 4 warning fixes.

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/BiosCommonCode/MakeAlternativeSource.cpp

    r62406 r62450  
    338338
    339339
     340#if 0 /* unused */
    340341/**
    341342 * Checks if a dword could be a far 16:16 BIOS address.
     
    356357    return true;
    357358}
     359#endif
    358360
    359361
  • trunk/src/VBox/ValidationKit/bootsectors/bs3kit/VBoxBs3ObjConverter.cpp

    r60727 r62450  
    162162    remove(pszFile);
    163163
    164     int rc = -1;
    165164    FILE *pFile = openfile(pszFile, true);
    166165    if (pFile)
     
    10281027}
    10291028
     1029#if 0 /* unused */
    10301030/**
    10311031 * LEDATA + FIXUPP - Adds a byte to the LEDATA record, splitting if needed.
     
    10411041    return false;
    10421042}
     1043#endif
    10431044
    10441045/**
     
    19331934    if (omfWriter_BeginModule(pThis, pszFile))
    19341935    {
    1935         Elf64_Ehdr const *pEhdr     = (Elf64_Ehdr const *)pbFile;
    1936         Elf64_Shdr const *paShdrs   = (Elf64_Shdr const *)&pbFile[pEhdr->e_shoff];
    1937         const char       *pszStrTab = (const char *)&pbFile[paShdrs[pEhdr->e_shstrndx].sh_offset];
    1938 
    19391936        if (   convertElfSectionsToSegDefsAndGrpDefs(pThis, &ElfStuff)
    19401937            && convertElfSymbolsToPubDefsAndExtDefs(pThis, &ElfStuff)
     
    36203617    {
    36213618        Elf64_Ehdr const *pEhdr     = (Elf64_Ehdr const *)pbFile;
    3622         Elf64_Shdr const *paShdrs   = (Elf64_Shdr const *)&pbFile[pEhdr->e_shoff];
    3623         const char       *pszStrTab = (const char *)&pbFile[paShdrs[pEhdr->e_shstrndx].sh_offset];
    36243619
    36253620        if (   convertMachOSectionsToSegDefsAndGrpDefs(pThis, &MachOStuff)
     
    45864581
    45874582    /* Begin and write the CV version signature. */
    4588     uint32_t const  cbMaxChunk = RT_ALIGN(OMF_MAX_RECORD_PAYLOAD - 1 - 16, 4); /* keep the data dword aligned */
    45894583    if (   !omfWriter_LEDataBegin(pThis, pOmfStuff->iSymbolsSeg, 0)
    45904584        || !omfWriter_LEDataAddU32(pThis, RTCVSYMBOLS_SIGNATURE_CV8))
  • trunk/src/bldprogs/VBoxCPP.cpp

    r62002 r62450  
    11131113
    11141114
     1115#if 0 /* unused */
    11151116/**
    11161117 * Skips white spaces, including escaped new-lines.
     
    11411142    }
    11421143}
     1144#endif
    11431145
    11441146
     
    12631265{
    12641266    size_t offSaved = ScmStreamTell(pStrmInput);
    1265     RTEXITCODE rcExit = vbcppProcessSkipWhiteEscapedEolAndComments(pThis, pStrmInput);
     1267    /*RTEXITCODE rcExit =*/ vbcppProcessSkipWhiteEscapedEolAndComments(pThis, pStrmInput);
    12661268    unsigned ch = ScmStreamPeekCh(pStrmInput);
    12671269    if (ch == '(')
     
    22922294    PSCMSTREAM pStrmInput = pExp->pStrmInput;
    22932295    size_t     offSaved   = ScmStreamTell(pStrmInput);
    2294     RTEXITCODE rcExit     = vbcppProcessSkipWhiteEscapedEolAndComments(pThis, pStrmInput);
     2296    /*RTEXITCODE rcExit = */ vbcppProcessSkipWhiteEscapedEolAndComments(pThis, pStrmInput);
    22952297    unsigned ch = ScmStreamPeekCh(pStrmInput);
    22962298    if (ch == '(')
     
    23812383{
    23822384    RTEXITCODE  rcExit        = RTEXITCODE_SUCCESS;
    2383     size_t      cReplacements = 0;
    23842385    size_t      off           = 0;
    23852386    unsigned    ch;
     
    34543455            break;
    34553456        case '>':
    3456             enmOp = kVBCppBinary_GreaterThan; break;
     3457            enmOp = kVBCppBinary_GreaterThan;
    34573458            if (pParser->pszCur[1] == '=')
    34583459            {
     
    37793780static VBCPPEXPRRET vbcppExprParseCharacterConstant(PVBCPPEXPRPARSER pParser)
    37803781{
    3781     char ch  = *pParser->pszCur++;
     3782    Assert(*pParser->pszCur == '\'');
     3783    pParser->pszCur++;
    37823784    char ch2 = *pParser->pszCur++;
    37833785    if (ch2 == '\'')
     
    48334835            pchFileSpec = pchFilename = ScmStreamGetCur(pStrmInput);
    48344836            unsigned chEnd  = chType == '<' ? '>' : '"';
    4835             unsigned chPrev = ch;
    48364837            while (   (ch = ScmStreamGetCh(pStrmInput)) != ~(unsigned)0
    48374838                   &&  ch != chEnd)
  • trunk/src/bldprogs/VBoxTpG.cpp

    r58997 r62450  
    10211021        RTListForEach(&pProv->ProbeHead, pProbe, VTGPROBE, ListEntry)
    10221022        {
    1023             PVTGARG const pFirstArg = RTListGetFirst(&pProbe->ArgHead, VTGARG, ListEntry);
    1024 
    10251023            ScmStreamPrintf(pStrm,
    10261024                            "extern uint32_t const volatile g_cVTGProbeEnabled_%s_%s;\n"
     
    12021200        RTListForEach(&pProv->ProbeHead, pProbe, VTGPROBE, ListEntry)
    12031201        {
    1204             PVTGARG const pFirstArg = RTListGetFirst(&pProbe->ArgHead, VTGARG, ListEntry);
    1205 
    12061202            generateProbeDefineName(szTmp, sizeof(szTmp), pProv->pszName, pProbe->pszMangledName);
    12071203            ScmStreamPrintf(pStrm,
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