- Timestamp:
- Jul 27, 2016 2:32:14 PM (8 years ago)
- Location:
- trunk/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/BiosCommonCode/MakeAlternativeSource.cpp
r62518 r62594 813 813 static bool disIsCodeAndAdjustSize(uint32_t uFlatAddr, PRTDBGSYMBOL pSym, PBIOSSEG pSeg) 814 814 { 815 RT_NOREF_PV(uFlatAddr); 816 815 817 switch (g_enmBiosType) 816 818 { … … 854 856 static bool disIs16BitCode(const char *pszSymbol) 855 857 { 858 RT_NOREF_PV(pszSymbol); 856 859 return true; 857 860 } … … 926 929 static DECLCALLBACK(int) disReadOpcodeBytes(PDISCPUSTATE pDis, uint8_t offInstr, uint8_t cbMinRead, uint8_t cbMaxRead) 927 930 { 931 RT_NOREF_PV(cbMinRead); 932 928 933 RTUINTPTR offBios = pDis->uInstrAddr + offInstr - g_uBiosFlatBase; 929 934 size_t cbToRead = cbMaxRead; -
trunk/src/VBox/Devices/Graphics/BIOS/vbetables-gen.c
r42353 r62594 69 69 long vram_size = VBE_DISPI_TOTAL_VIDEO_MEMORY_MB * 1024 * 1024; 70 70 71 (void)argc; (void)argv; 72 71 73 printf("/* THIS FILE IS AUTOMATICALLY GENERATED - DO NOT EDIT */\n\n"); 72 74 printf("#define VBE_DISPI_TOTAL_VIDEO_MEMORY_MB %d\n\n", VBE_DISPI_TOTAL_VIDEO_MEMORY_MB); -
trunk/src/VBox/Disassembler/DisasmCore.cpp
r62479 r62594 236 236 { 237 237 #ifdef IN_RING0 238 NOREF(cbMinRead);238 RT_NOREF_PV(cbMinRead); 239 239 AssertMsgFailed(("disReadWord with no read callback in ring 0!!\n")); 240 240 RT_BZERO(&pDis->abInstr[offInstr], cbMaxRead); … … 639 639 { 640 640 PCDISOPCODE fpop; 641 NOREF(pOp);641 RT_NOREF_PV(pOp); 642 642 643 643 uint8_t ModRM = disReadByte(pDis, offInstr); … … 760 760 static size_t ParseSIB(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 761 761 { 762 NOREF(pOp); NOREF(pParam);762 RT_NOREF_PV(pOp); RT_NOREF_PV(pParam); 763 763 764 764 uint8_t SIB = disReadByte(pDis, offInstr); … … 791 791 static size_t ParseSIB_SizeOnly(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 792 792 { 793 NOREF(pOp); NOREF(pParam);793 RT_NOREF_PV(pOp); RT_NOREF_PV(pParam); 794 794 795 795 uint8_t SIB = disReadByte(pDis, offInstr); … … 830 830 static void disasmModRMReg(unsigned idx, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam, int fRegAddr) 831 831 { 832 NOREF(pOp); NOREF(pDis);832 RT_NOREF_PV(pOp); RT_NOREF_PV(pDis); 833 833 834 834 #ifdef LOG_ENABLED … … 909 909 { DISGREG_BX, DISGREG_BX, DISGREG_BP, DISGREG_BP, DISGREG_SI, DISGREG_DI, DISGREG_BP, DISGREG_BX }; 910 910 911 NOREF(pDis); NOREF(pOp);911 RT_NOREF_PV(pDis); RT_NOREF_PV(pOp); 912 912 pParam->fUse |= DISUSE_REG_GEN16; 913 913 pParam->Base.idxGenReg = s_auBaseModRMReg16[idx]; … … 923 923 static void disasmModRMSReg(unsigned idx, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 924 924 { 925 NOREF(pOp);925 RT_NOREF_PV(pOp); 926 926 if (idx >= DISSELREG_END) 927 927 { … … 1267 1267 static size_t ParseIllegal(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 1268 1268 { 1269 NOREF(pOp); NOREF(pParam); NOREF(pDis);1269 RT_NOREF_PV(pOp); RT_NOREF_PV(pParam); RT_NOREF_PV(pDis); 1270 1270 AssertFailed(); 1271 1271 return offInstr; … … 1359 1359 static size_t ParseModFence(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 1360 1360 { 1361 NOREF(pOp); NOREF(pParam); NOREF(pDis);1361 RT_NOREF_PV(pOp); RT_NOREF_PV(pParam); RT_NOREF_PV(pDis); 1362 1362 /* Note! Only used in group 15, so we must account for the mod/rm byte. */ 1363 1363 return offInstr + 1; … … 1367 1367 static size_t ParseImmByte(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 1368 1368 { 1369 NOREF(pOp);1369 RT_NOREF_PV(pOp); 1370 1370 uint8_t byte = disReadByte(pDis, offInstr); 1371 1371 if (pParam->fParam == OP_PARM_Lx) … … 1391 1391 static size_t ParseImmByte_SizeOnly(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 1392 1392 { 1393 NOREF(pOp); NOREF(pParam); NOREF(pDis);1393 RT_NOREF_PV(pOp); RT_NOREF_PV(pParam); RT_NOREF_PV(pDis); 1394 1394 return offInstr + 1; 1395 1395 } … … 1398 1398 static size_t ParseImmByteSX(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 1399 1399 { 1400 NOREF(pOp);1400 RT_NOREF_PV(pOp); 1401 1401 if (pDis->uOpMode == DISCPUMODE_32BIT) 1402 1402 { … … 1424 1424 static size_t ParseImmByteSX_SizeOnly(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 1425 1425 { 1426 NOREF(pOp); NOREF(pParam); NOREF(pDis);1426 RT_NOREF_PV(pOp); RT_NOREF_PV(pParam); RT_NOREF_PV(pDis); 1427 1427 return offInstr + 1; 1428 1428 } … … 1431 1431 static size_t ParseImmUshort(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 1432 1432 { 1433 NOREF(pOp);1433 RT_NOREF_PV(pOp); 1434 1434 pParam->uValue = disReadWord(pDis, offInstr); 1435 1435 pParam->fUse |= DISUSE_IMMEDIATE16; … … 1441 1441 static size_t ParseImmUshort_SizeOnly(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 1442 1442 { 1443 NOREF(pOp); NOREF(pParam); NOREF(pDis);1443 RT_NOREF_PV(pOp); RT_NOREF_PV(pParam); RT_NOREF_PV(pDis); 1444 1444 return offInstr + 2; 1445 1445 } … … 1448 1448 static size_t ParseImmUlong(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 1449 1449 { 1450 NOREF(pOp);1450 RT_NOREF_PV(pOp); 1451 1451 pParam->uValue = disReadDWord(pDis, offInstr); 1452 1452 pParam->fUse |= DISUSE_IMMEDIATE32; … … 1458 1458 static size_t ParseImmUlong_SizeOnly(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 1459 1459 { 1460 NOREF(pOp); NOREF(pParam); NOREF(pDis);1460 RT_NOREF_PV(pOp); RT_NOREF_PV(pParam); RT_NOREF_PV(pDis); 1461 1461 return offInstr + 4; 1462 1462 } … … 1465 1465 static size_t ParseImmQword(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 1466 1466 { 1467 NOREF(pOp);1467 RT_NOREF_PV(pOp); 1468 1468 pParam->uValue = disReadQWord(pDis, offInstr); 1469 1469 pParam->fUse |= DISUSE_IMMEDIATE64; … … 1475 1475 static size_t ParseImmQword_SizeOnly(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 1476 1476 { 1477 NOREF(offInstr); NOREF(pOp); NOREF(pParam); NOREF(pDis);1477 RT_NOREF_PV(offInstr); RT_NOREF_PV(pOp); RT_NOREF_PV(pParam); RT_NOREF_PV(pDis); 1478 1478 return offInstr + 8; 1479 1479 } … … 1482 1482 static size_t ParseImmV(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 1483 1483 { 1484 NOREF(pOp);1484 RT_NOREF_PV(pOp); 1485 1485 if (pDis->uOpMode == DISCPUMODE_32BIT) 1486 1486 { … … 1508 1508 static size_t ParseImmV_SizeOnly(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 1509 1509 { 1510 NOREF(offInstr); NOREF(pOp); NOREF(pParam);1510 RT_NOREF_PV(offInstr); RT_NOREF_PV(pOp); RT_NOREF_PV(pParam); 1511 1511 if (pDis->uOpMode == DISCPUMODE_32BIT) 1512 1512 return offInstr + 4; … … 1519 1519 static size_t ParseImmZ(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 1520 1520 { 1521 NOREF(pOp);1521 RT_NOREF_PV(pOp); 1522 1522 /* Word for 16-bit operand-size or doubleword for 32 or 64-bit operand-size. */ 1523 1523 if (pDis->uOpMode == DISCPUMODE_16BIT) … … 1548 1548 static size_t ParseImmZ_SizeOnly(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 1549 1549 { 1550 NOREF(offInstr); NOREF(pOp); NOREF(pParam);1550 RT_NOREF_PV(offInstr); RT_NOREF_PV(pOp); RT_NOREF_PV(pParam); 1551 1551 /* Word for 16-bit operand-size or doubleword for 32 or 64-bit operand-size. */ 1552 1552 if (pDis->uOpMode == DISCPUMODE_16BIT) … … 1560 1560 static size_t ParseImmBRel(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 1561 1561 { 1562 NOREF(pOp);1562 RT_NOREF_PV(pOp); 1563 1563 pParam->uValue = disReadByte(pDis, offInstr); 1564 1564 pParam->fUse |= DISUSE_IMMEDIATE8_REL; … … 1571 1571 static size_t ParseImmBRel_SizeOnly(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 1572 1572 { 1573 NOREF(offInstr); NOREF(pOp); NOREF(pParam); NOREF(pDis);1573 RT_NOREF_PV(offInstr); RT_NOREF_PV(pOp); RT_NOREF_PV(pParam); RT_NOREF_PV(pDis); 1574 1574 return offInstr + 1; 1575 1575 } … … 1579 1579 static size_t ParseImmVRel(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 1580 1580 { 1581 NOREF(pOp);1581 RT_NOREF_PV(pOp); 1582 1582 if (pDis->uOpMode == DISCPUMODE_32BIT) 1583 1583 { … … 1607 1607 static size_t ParseImmVRel_SizeOnly(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 1608 1608 { 1609 NOREF(offInstr); NOREF(pOp); NOREF(pParam);1609 RT_NOREF_PV(offInstr); RT_NOREF_PV(pOp); RT_NOREF_PV(pParam); 1610 1610 if (pDis->uOpMode == DISCPUMODE_16BIT) 1611 1611 return offInstr + 2; … … 1617 1617 static size_t ParseImmAddr(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 1618 1618 { 1619 NOREF(pOp);1619 RT_NOREF_PV(pOp); 1620 1620 if (pDis->uAddrMode == DISCPUMODE_32BIT) 1621 1621 { … … 1680 1680 static size_t ParseImmAddr_SizeOnly(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 1681 1681 { 1682 NOREF(offInstr); NOREF(pOp);1682 RT_NOREF_PV(offInstr); RT_NOREF_PV(pOp); 1683 1683 if (pDis->uAddrMode == DISCPUMODE_32BIT) 1684 1684 { … … 1700 1700 static size_t ParseImmAddrF(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 1701 1701 { 1702 NOREF(pOp);1702 RT_NOREF_PV(pOp); 1703 1703 // immediate far pointers - only 16:16 or 16:32; determined by operand, *not* address size! 1704 1704 Assert(pDis->uOpMode == DISCPUMODE_16BIT || pDis->uOpMode == DISCPUMODE_32BIT); … … 1724 1724 static size_t ParseImmAddrF_SizeOnly(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 1725 1725 { 1726 NOREF(offInstr); NOREF(pOp);1726 RT_NOREF_PV(offInstr); RT_NOREF_PV(pOp); 1727 1727 // immediate far pointers - only 16:16 or 16:32 1728 1728 Assert(pDis->uOpMode == DISCPUMODE_16BIT || pDis->uOpMode == DISCPUMODE_32BIT); 1729 Assert(OP_PARM_VSUBTYPE(pParam->fParam) == OP_PARM_p); 1729 Assert(OP_PARM_VSUBTYPE(pParam->fParam) == OP_PARM_p); RT_NOREF_PV(pParam); 1730 1730 if (pDis->uOpMode == DISCPUMODE_32BIT) 1731 1731 return offInstr + 4 + 2; /* far 16:32 pointer */ … … 1736 1736 static size_t ParseFixedReg(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 1737 1737 { 1738 NOREF(offInstr);1738 RT_NOREF_PV(offInstr); 1739 1739 1740 1740 /* … … 1838 1838 static size_t ParseXv(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 1839 1839 { 1840 NOREF(pOp);1840 RT_NOREF_PV(pOp); 1841 1841 1842 1842 pParam->fUse |= DISUSE_POINTER_DS_BASED; … … 1863 1863 static size_t ParseXb(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 1864 1864 { 1865 NOREF(pOp);1865 RT_NOREF_PV(pOp); 1866 1866 1867 1867 pParam->fUse |= DISUSE_POINTER_DS_BASED; … … 1888 1888 static size_t ParseYv(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 1889 1889 { 1890 NOREF(pOp);1890 RT_NOREF_PV(pOp); 1891 1891 1892 1892 pParam->fUse |= DISUSE_POINTER_ES_BASED; … … 1913 1913 static size_t ParseYb(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 1914 1914 { 1915 NOREF(pOp);1915 RT_NOREF_PV(pOp); 1916 1916 1917 1917 pParam->fUse |= DISUSE_POINTER_ES_BASED; … … 1938 1938 static size_t ParseInvOpModRm(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 1939 1939 { 1940 NOREF(pOp); NOREF(pDis); NOREF(pParam);1940 RT_NOREF_PV(pOp); RT_NOREF_PV(pDis); RT_NOREF_PV(pParam); 1941 1941 /* This is used to avoid a bunch of special hacks to get the ModRM byte 1942 1942 included when encountering invalid opcodes in groups. */ … … 1947 1947 static size_t ParseVexDest(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 1948 1948 { 1949 NOREF(pOp);1949 RT_NOREF_PV(pOp); 1950 1950 1951 1951 unsigned type = OP_PARM_VTYPE(pParam->fParam); … … 1981 1981 static size_t ParseTwoByteEsc(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 1982 1982 { 1983 NOREF(pOp); NOREF(pParam);1983 RT_NOREF_PV(pOp); RT_NOREF_PV(pParam); 1984 1984 1985 1985 /* 2nd byte */ … … 2044 2044 static size_t ParseThreeByteEsc4(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 2045 2045 { 2046 NOREF(pOp); NOREF(pParam);2046 RT_NOREF_PV(pOp); RT_NOREF_PV(pParam); 2047 2047 2048 2048 /* 3rd byte */ … … 2146 2146 static size_t ParseThreeByteEsc5(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 2147 2147 { 2148 NOREF(pOp); NOREF(pParam);2148 RT_NOREF_PV(pOp); RT_NOREF_PV(pParam); 2149 2149 2150 2150 /* 3rd byte */ … … 2190 2190 static size_t ParseNopPause(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 2191 2191 { 2192 NOREF(pParam);2192 RT_NOREF_PV(pParam); 2193 2193 2194 2194 if (pDis->fPrefix & DISPREFIX_REP) … … 2206 2206 static size_t ParseImmGrpl(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 2207 2207 { 2208 NOREF(pParam);2208 RT_NOREF_PV(pParam); 2209 2209 2210 2210 uint8_t modrm = disReadByte(pDis, offInstr); … … 2220 2220 static size_t ParseShiftGrp2(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 2221 2221 { 2222 NOREF(pParam);2222 RT_NOREF_PV(pParam); 2223 2223 2224 2224 unsigned idx; … … 2255 2255 { 2256 2256 unsigned idx = (pDis->bOpCode - 0xF6) * 8; 2257 NOREF(pParam);2257 RT_NOREF_PV(pParam); 2258 2258 2259 2259 uint8_t modrm = disReadByte(pDis, offInstr); … … 2268 2268 static size_t ParseGrp4(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 2269 2269 { 2270 NOREF(pParam);2270 RT_NOREF_PV(pParam); 2271 2271 2272 2272 uint8_t modrm = disReadByte(pDis, offInstr); … … 2281 2281 static size_t ParseGrp5(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 2282 2282 { 2283 NOREF(pParam);2283 RT_NOREF_PV(pParam); 2284 2284 2285 2285 uint8_t modrm = disReadByte(pDis, offInstr); … … 2315 2315 AssertMsg(offStrict == offRet - 1 /* the imm8_opcode */ || pOp->uOpcode == OP_INVALID, 2316 2316 ("offStrict=%#x offRet=%#x uOpCode=%u\n", offStrict, offRet, pOp->uOpcode)); 2317 NOREF(offStrict);2317 RT_NOREF_PV(offStrict); 2318 2318 2319 2319 return offRet; … … 2323 2323 static size_t ParseGrp6(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 2324 2324 { 2325 NOREF(pParam);2325 RT_NOREF_PV(pParam); 2326 2326 2327 2327 uint8_t modrm = disReadByte(pDis, offInstr); … … 2336 2336 static size_t ParseGrp7(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 2337 2337 { 2338 NOREF(pParam);2338 RT_NOREF_PV(pParam); 2339 2339 2340 2340 uint8_t modrm = disReadByte(pDis, offInstr); … … 2362 2362 static size_t ParseGrp8(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 2363 2363 { 2364 NOREF(pParam);2364 RT_NOREF_PV(pParam); 2365 2365 2366 2366 uint8_t modrm = disReadByte(pDis, offInstr); … … 2375 2375 static size_t ParseGrp9(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 2376 2376 { 2377 NOREF(pParam);2377 RT_NOREF_PV(pParam); 2378 2378 2379 2379 uint8_t modrm = disReadByte(pDis, offInstr); … … 2388 2388 static size_t ParseGrp10(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 2389 2389 { 2390 NOREF(pParam);2390 RT_NOREF_PV(pParam); 2391 2391 2392 2392 uint8_t modrm = disReadByte(pDis, offInstr); … … 2401 2401 static size_t ParseGrp12(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 2402 2402 { 2403 NOREF(pParam);2403 RT_NOREF_PV(pParam); 2404 2404 2405 2405 uint8_t modrm = disReadByte(pDis, offInstr); … … 2417 2417 static size_t ParseGrp13(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 2418 2418 { 2419 NOREF(pParam);2419 RT_NOREF_PV(pParam); 2420 2420 2421 2421 uint8_t modrm = disReadByte(pDis, offInstr); … … 2432 2432 static size_t ParseGrp14(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 2433 2433 { 2434 NOREF(pParam);2434 RT_NOREF_PV(pParam); 2435 2435 2436 2436 uint8_t modrm = disReadByte(pDis, offInstr); … … 2447 2447 static size_t ParseGrp15(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 2448 2448 { 2449 NOREF(pParam);2449 RT_NOREF_PV(pParam); 2450 2450 2451 2451 uint8_t modrm = disReadByte(pDis, offInstr); … … 2465 2465 static size_t ParseGrp16(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 2466 2466 { 2467 NOREF(pParam);2467 RT_NOREF_PV(pParam); 2468 2468 2469 2469 uint8_t modrm = disReadByte(pDis, offInstr); … … 2476 2476 static size_t ParseVex2b(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 2477 2477 { 2478 NOREF(pOp); NOREF(pParam);2478 RT_NOREF_PV(pOp); RT_NOREF_PV(pParam); 2479 2479 2480 2480 PCDISOPCODE pOpCode = &g_InvalidOpcode[0]; … … 2523 2523 static size_t ParseVex3b(size_t offInstr, PCDISOPCODE pOp, PDISSTATE pDis, PDISOPPARAM pParam) 2524 2524 { 2525 NOREF(pOp); NOREF(pParam);2525 RT_NOREF_PV(pOp); RT_NOREF_PV(pParam); 2526 2526 2527 2527 PCDISOPCODE pOpCode = NULL; -
trunk/src/VBox/Disassembler/DisasmFormatYasm.cpp
r62479 r62594 97 97 static const char *disasmFormatYasmBaseReg(PCDISSTATE pDis, PCDISOPPARAM pParam, size_t *pcchReg) 98 98 { 99 RT_NOREF_PV(pDis); 100 99 101 switch (pParam->fUse & ( DISUSE_REG_GEN8 | DISUSE_REG_GEN16 | DISUSE_REG_GEN32 | DISUSE_REG_GEN64 100 102 | DISUSE_REG_FP | DISUSE_REG_MMX | DISUSE_REG_XMM | DISUSE_REG_YMM -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/VBoxBs3ObjConverter.cpp
r62471 r62594 1692 1692 if (pReloc1->r_offset > pReloc2->r_offset) 1693 1693 return 1; 1694 RT_NOREF_PV(pvUser); 1694 1695 return 0; 1695 1696 } … … 1700 1701 Elf64_Shdr const *paShdrs = pElfStuff->paShdrs; 1701 1702 bool fRet = true; 1703 RT_NOREF_PV(cbFile); 1704 1702 1705 for (uint32_t i = 1; i < pThis->cSegments; i++) 1703 1706 { … … 2507 2510 PCIMAGE_SYMBOL paSymbols, uint16_t cSymbols, const char *pchStrTab) 2508 2511 { 2512 RT_NOREF_PV(cbFile); 2513 RT_NOREF_PV(cSections); 2514 RT_NOREF_PV(cSymbols); 2515 2509 2516 uint32_t const cbStrTab = *(uint32_t const *)pchStrTab; 2510 2517 bool fRet = true; -
trunk/src/bldprogs/VBoxCPP.cpp
r62537 r62594 1062 1062 size_t cchMinIndent) 1063 1063 { 1064 RT_NOREF_PV(cchMinIndent); /** @todo cchMinIndent */ 1065 1064 1066 size_t offCur = ScmStreamTell(pStrmInput); 1065 1067 if (offStart < offCur) … … 1549 1551 * @param pThis The C preprocessor instance. 1550 1552 * @param pStrmInput The input stream. 1551 * @param ch The first character. 1552 */ 1553 static RTEXITCODE vbcppProcessIdentifier(PVBCPP pThis, PSCMSTREAM pStrmInput, char ch) 1553 */ 1554 static RTEXITCODE vbcppProcessIdentifier(PVBCPP pThis, PSCMSTREAM pStrmInput) 1554 1555 { 1555 1556 RTEXITCODE rcExit; … … 1694 1695 const char *pchReplacement, size_t cchReplacement) 1695 1696 { 1697 RT_NOREF_PV(pThis); 1698 1696 1699 /* 1697 1700 * Figure how much space we actually need. … … 2383 2386 { 2384 2387 RTEXITCODE rcExit = RTEXITCODE_SUCCESS; 2388 size_t cReplacements = 0; 2385 2389 size_t off = 0; 2386 2390 unsigned ch; … … 2441 2445 || vbcppMacroExpandLookForLeftParenthesis(pThis, pExp, &off)) ) 2442 2446 { 2447 cReplacements++; 2443 2448 rcExit = vbcppMacroExpandIt(pThis, pExp, offDefine, pMacro, off); 2444 2449 off = offDefine; … … 2450 2455 && cchDefine == sizeof("defined") - 1 2451 2456 && !strncmp(&pExp->StrBuf.pszBuf[offDefine], "defined", cchDefine)) 2457 { 2458 cReplacements++; 2452 2459 rcExit = vbcppMacroExpandDefinedOperator(pThis, pExp, offDefine, &off); 2460 } 2453 2461 else 2454 2462 off = offDefine + cchDefine; … … 2462 2470 } 2463 2471 2472 if (pcReplacements) 2473 *pcReplacements = cReplacements; 2464 2474 return rcExit; 2465 2475 } … … 2973 2983 static RTEXITCODE vbcppDirectiveDefine(PVBCPP pThis, PSCMSTREAM pStrmInput, size_t offStart) 2974 2984 { 2985 RT_NOREF_PV(offStart); 2986 2975 2987 /* 2976 2988 * Parse it. … … 3087 3099 static RTEXITCODE vbcppDirectiveUndef(PVBCPP pThis, PSCMSTREAM pStrmInput, size_t offStart) 3088 3100 { 3101 RT_NOREF_PV(offStart); 3102 3089 3103 /* 3090 3104 * Parse it. … … 3187 3201 const char *pchCondition, size_t cchCondition) 3188 3202 { 3203 RT_NOREF_PV(offStart); RT_NOREF_PV(pStrmInput); 3204 3205 3189 3206 if (pThis->cCondStackDepth >= _64K) 3190 3207 return vbcppError(pThis, "Too many nested #if/#ifdef/#ifndef statements"); … … 4243 4260 { 4244 4261 Assert(strlen(pszExpr) == cchExpr); 4262 RT_NOREF_PV(cReplacements); 4263 4245 4264 size_t cUndefined; 4246 4265 PVBCPPEXPR pExprTree; … … 4271 4290 static RTEXITCODE vbcppExtractSkipCommentLine(PVBCPP pThis, PSCMSTREAM pStrmInput) 4272 4291 { 4292 RT_NOREF_PV(pThis); 4293 4273 4294 unsigned chPrev = ScmStreamGetCh(pStrmInput); Assert(chPrev == '/'); 4274 4295 unsigned ch; … … 4817 4838 static RTEXITCODE vbcppDirectiveInclude(PVBCPP pThis, PSCMSTREAM pStrmInput, size_t offStart) 4818 4839 { 4840 RT_NOREF_PV(offStart); 4841 4819 4842 /* 4820 4843 * Parse it. … … 4923 4946 static RTEXITCODE vbcppDirectivePragma(PVBCPP pThis, PSCMSTREAM pStrmInput, size_t offStart) 4924 4947 { 4948 RT_NOREF_PV(offStart); 4949 4925 4950 /* 4926 4951 * Parse out the first word. … … 4983 5008 static RTEXITCODE vbcppDirectiveError(PVBCPP pThis, PSCMSTREAM pStrmInput, size_t offStart) 4984 5009 { 5010 RT_NOREF_PV(offStart); 5011 RT_NOREF_PV(pStrmInput); 4985 5012 return vbcppError(pThis, "Hit an #error"); 4986 5013 } … … 4998 5025 static RTEXITCODE vbcppDirectiveLineNo(PVBCPP pThis, PSCMSTREAM pStrmInput, size_t offStart) 4999 5026 { 5027 RT_NOREF_PV(offStart); 5028 RT_NOREF_PV(pStrmInput); 5000 5029 return vbcppError(pThis, "Not implemented: %s", __FUNCTION__); 5001 5030 } … … 5011 5040 static RTEXITCODE vbcppDirectiveLineNoShort(PVBCPP pThis, PSCMSTREAM pStrmInput) 5012 5041 { 5042 RT_NOREF_PV(pStrmInput); 5013 5043 return vbcppError(pThis, "Not implemented: %s", __FUNCTION__); 5014 5044 } … … 5158 5188 rcExit = vbcppProcessCharacterConstant(pThis, pStrmInput); 5159 5189 else if (vbcppIsCIdentifierLeadChar(ch)) 5160 rcExit = vbcppProcessIdentifier(pThis, pStrmInput , ch);5190 rcExit = vbcppProcessIdentifier(pThis, pStrmInput); 5161 5191 else if (RT_C_IS_DIGIT(ch)) 5162 5192 rcExit = vbcppProcessNumber(pThis, pStrmInput, ch);
Note:
See TracChangeset
for help on using the changeset viewer.