Changeset 62724 in vbox
- Timestamp:
- Jul 30, 2016 12:08:44 AM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 109298
- Location:
- trunk/src/VBox/Runtime
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstLdr-2.cpp
r62477 r62724 71 71 * @param pvUser User argument. 72 72 */ 73 static DECLCALLBACK(int) testGetImport(RTLDRMOD hLdrMod, const char *pszModule, const char *pszSymbol, unsigned uSymbol, RTUINTPTR *pValue, void *pvUser) 74 { 73 static DECLCALLBACK(int) testGetImport(RTLDRMOD hLdrMod, const char *pszModule, const char *pszSymbol, unsigned uSymbol, 74 RTUINTPTR *pValue, void *pvUser) 75 { 76 RT_NOREF5(hLdrMod, pszModule, pszSymbol, uSymbol, pvUser); 75 77 /* check the name format and only permit certain names */ 76 78 *pValue = 0xf0f0f0f0; -
trunk/src/VBox/Runtime/testcase/tstLdr-3.cpp
r62477 r62724 73 73 static DECLCALLBACK(int) testEnumSymbol2(RTLDRMOD hLdrMod, const char *pszSymbol, unsigned uSymbol, RTUINTPTR Value, void *pvUser) 74 74 { 75 RT_NOREF1(hLdrMod); 75 76 PTESTNEARSYM pSym = (PTESTNEARSYM)pvUser; 76 77 … … 129 130 void *pvUser) 130 131 { 132 RT_NOREF3(pCpu, u32Sel, pvUser); 133 131 134 if ( uAddress > RTLdrSize(g_hLdrMod) + g_uLoadAddr 132 135 || uAddress < g_uLoadAddr) … … 149 152 static DECLCALLBACK(int) MyReadBytes(PDISCPUSTATE pDis, uint8_t offInstr, uint8_t cbMinRead, uint8_t cbMaxRead) 150 153 { 154 RT_NOREF1(cbMaxRead); 151 155 uint8_t const *pbSrc = (uint8_t const *)((uintptr_t)pDis->uInstrAddr + (uintptr_t)pDis->pvUser + offInstr); 152 156 memcpy(&pDis->abInstr[offInstr], pbSrc, cbMinRead); … … 207 211 * @param pvUser User argument. 208 212 */ 209 static DECLCALLBACK(int) testGetImport(RTLDRMOD hLdrMod, const char *pszModule, const char *pszSymbol, unsigned uSymbol, RTUINTPTR *pValue, void *pvUser) 210 { 213 static DECLCALLBACK(int) testGetImport(RTLDRMOD hLdrMod, const char *pszModule, const char *pszSymbol, 214 unsigned uSymbol, RTUINTPTR *pValue, void *pvUser) 215 { 216 RT_NOREF5(hLdrMod, pszModule, pszSymbol, uSymbol, pvUser); 211 217 #if 1 212 218 RTUINTPTR BaseAddr = *(PCRTUINTPTR)pvUser; … … 233 239 static DECLCALLBACK(int) testEnumSymbol1(RTLDRMOD hLdrMod, const char *pszSymbol, unsigned uSymbol, RTUINTPTR Value, void *pvUser) 234 240 { 241 RT_NOREF2(hLdrMod, pvUser); 235 242 RTPrintf(" %RTptr %s (%d)\n", Value, pszSymbol, uSymbol); 236 243 return VINF_SUCCESS; -
trunk/src/VBox/Runtime/testcase/tstLdr-4.cpp
r62477 r62724 57 57 static DECLCALLBACK(int) testGetImport(RTLDRMOD hLdrMod, const char *pszModule, const char *pszSymbol, unsigned uSymbol, RTUINTPTR *pValue, void *pvUser) 58 58 { 59 RT_NOREF4(hLdrMod, pszModule, uSymbol, pvUser); 59 60 if ( !strcmp(pszSymbol, "RTAssertMsg1Weak") || !strcmp(pszSymbol, "_RTAssertMsg1Weak")) 60 61 *pValue = (uintptr_t)RTAssertMsg1Weak; -
trunk/src/VBox/Runtime/testcase/tstRTHttp.cpp
r62477 r62724 195 195 int main(int argc, char **argv) 196 196 { 197 unsigned cErrors = 0;197 //unsigned cErrors = 0; 198 198 199 199 RTR3InitExe(argc, &argv, 0); -
trunk/src/VBox/Runtime/testcase/tstRTS3.cpp
r62477 r62724 60 60 #ifdef TSTS3_SHOWPROGRESS 61 61 RTTestIPrintf(RTTESTLVL_ALWAYS, " Progress for %s - %d%% done.\n", (char*)pvUser, (int)uPercent); 62 #endif /* TSTS3_SHOWPROGRESS */ 62 #else 63 RT_NOREF2(uPercent, pvUser); 64 #endif 63 65 return VINF_SUCCESS; 64 66 } -
trunk/src/VBox/Runtime/testcase/tstRTVfs.cpp
r62477 r62724 85 85 int main(int argc, char **argv) 86 86 { 87 RT_NOREF2(argc, argv); 88 87 89 /* 88 90 * Initialize IPRT and create the test. -
trunk/src/VBox/Runtime/testcase/tstTSC.cpp
r62477 r62724 419 419 { "--calc-frequency", 'f', RTGETOPT_REQ_NOTHING }, 420 420 }; 421 int iArg = 1;422 421 int ch; 423 422 RTGETOPTUNION Value; -
trunk/src/VBox/Runtime/testcase/tstVector.cpp
r62477 r62724 78 78 RTVEC_DECL(tstSimple, void *) 79 79 80 static void testVectorSimple( RTTEST hTest)80 static void testVectorSimple(void) 81 81 { 82 82 RTTestISub("Vector structure, no cleanup callback"); … … 142 142 RTVEC_DECL_DELETE(tstDelete, void *, deletePVoid) 143 143 144 static void testVectorDelete( RTTEST hTest)144 static void testVectorDelete(void) 145 145 { 146 146 RTTestISub("Vector structure with cleanup by pointer callback"); … … 181 181 RTVEC_DECL_DELETE_BY_VALUE(tstDeleteValue, void *, deletePVoidValue) 182 182 183 static void testVectorDeleteValue( RTTEST hTest)183 static void testVectorDeleteValue(void) 184 184 { 185 185 RTTestISub("Vector structure with cleanup by value callback"); … … 228 228 return rcExit; 229 229 230 testVectorSimple( hTest);231 testVectorDelete( hTest);232 testVectorDeleteValue( hTest);230 testVectorSimple(); 231 testVectorDelete(); 232 testVectorDeleteValue(); 233 233 234 234 return RTTestSummaryAndDestroy(hTest); -
trunk/src/VBox/Runtime/tools/RTDbgSymCache.cpp
r62477 r62724 220 220 * Create the directories in the path. 221 221 */ 222 char chSaved = RTPATH_SLASH;223 222 for (unsigned i = 0; i < 6; i++, cch += 5) 224 223 { … … 576 575 { 577 576 /* This shouldn't happen, figure out what to do if it does. */ 577 RT_NOREF_PV(pCfg); 578 578 return RTMsgErrorRc(VERR_NOT_IMPLEMENTED, 579 579 "'%s' is an OS X image file, did you point me to a file inside a .dSYM or .sym file?", … … 592 592 static int rtDbgSymCacheAddDebugPdb(const char *pszPath, PCRTDBGSYMCACHEADDCFG pCfg, RTFILE hFile) 593 593 { 594 RT_NOREF2(pCfg, hFile); 594 595 return RTMsgErrorRc(VERR_NOT_IMPLEMENTED, "PDB support not implemented: '%s'", pszPath); 595 596 } … … 1109 1110 bool fOverwriteOnConflict) 1110 1111 { 1112 RT_NOREF1(fOverwriteOnConflict); 1111 1113 RTDBGSYMCACHEADDCFG Cfg; 1112 1114 Cfg.fRecursive = fRecursive; … … 1196 1198 return RTMsgErrorExit(RTEXITCODE_FAILURE, "RTGetOptInit failed: %Rrc", rc); 1197 1199 1198 uint32_t cAdded = 0;1200 //uint32_t cAdded = 0; 1199 1201 RTGETOPTUNION ValueUnion; 1200 1202 int chOpt; -
trunk/src/VBox/Runtime/tools/RTGzip.cpp
r62477 r62724 85 85 { 86 86 /** @todo Add isatty() to IPRT. */ 87 RT_NOREF1(enmStdHandle); 87 88 return false; 88 89 } … … 189 190 190 191 uint32_t cRefs = RTVfsIoStrmRelease(*phVfsDst); 191 Assert(cRefs > 0); 192 Assert(cRefs > 0); RT_NOREF_PV(cRefs); 192 193 *phVfsDst = hVfsGzip; 193 194 … … 216 217 217 218 uint32_t cRefs = RTVfsIoStrmRelease(*phVfsSrc); 218 Assert(cRefs > 0); 219 Assert(cRefs > 0); RT_NOREF_PV(cRefs); 219 220 *phVfsSrc = hVfsGunzip; 220 221 … … 261 262 static RTEXITCODE gzipTestFile(PRTVFSIOSTREAM phVfsSrc, PCRTGZIPCMDOPTS pOpts) 262 263 { 264 RT_NOREF_PV(pOpts); 265 263 266 /* 264 267 * Read the whole stream. … … 284 287 static RTEXITCODE gzipListFile(PRTVFSIOSTREAM phVfsSrc, PCRTGZIPCMDOPTS pOpts) 285 288 { 289 RT_NOREF2(phVfsSrc, pOpts); 286 290 return RTMsgErrorExit(RTEXITCODE_FAILURE, "Listing has not been implemented"); 287 291 } … … 485 489 RTEXITCODE rcExit = RTEXITCODE_SUCCESS; 486 490 unsigned cProcessed = 0; 487 RTVFSIOSTREAM hVfsStdOut= NIL_RTVFSIOSTREAM;491 //RTVFSIOSTREAM hVfsStdOut= NIL_RTVFSIOSTREAM; 488 492 489 493 RTGETOPTSTATE GetState; -
trunk/src/VBox/Runtime/tools/RTSignTool.cpp
r62570 r62724 417 417 return RTErrInfoSetF(pErrInfo, VERR_NOT_SUPPORTED, "Unsupported signature type: %d", enmSignature); 418 418 } 419 return VINF_SUCCESS;420 419 } 421 420
Note:
See TracChangeset
for help on using the changeset viewer.