VirtualBox

Changeset 39070 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Oct 21, 2011 9:41:18 AM (13 years ago)
Author:
vboxsync
Message:

VMM,IPRT: -Wunused-function.

Location:
trunk/src/VBox/VMM
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/Makefile.kmk

    r38954 r39070  
    196196        VMMR3/PDMAsyncCompletionFileNormal.cpp
    197197endif
    198 if defined(VBOX_WITH_WARNINGS_AS_ERRORS) && "$(KBUILD_TARGET)" == "win"
    199 ## @todo Alexander, please fix these warnings.
    200 VMMR3/PDMBlkCache.cpp_CXXFLAGS = -WX-
    201 endif
    202198
    203199ifdef VBOX_WITH_RAW_MODE
     
    567563# Disable annoying warnings about array subscript above array bounds in aPages[]
    568564#
    569 VMMR3/PGMPool.cpp_CXXFLAGS = $(if-expr $(KBUILD_TARGET) == "win",,$(VBOX_GCC_Wno-array_bounds))
    570 VMMAll/PGMAllPool.cpp_CXXFLAGS = $(if-expr $(KBUILD_TARGET) == "win",,$(VBOX_GCC_Wno-array_bounds))
     565ifneq ($(KBUILD_TARGET),win)
     566 VMMR3/PGMPool.cpp_CXXFLAGS     = $(VBOX_GCC_Wno-array_bounds)
     567 VMMAll/PGMAllPool.cpp_CXXFLAGS = $(VBOX_GCC_Wno-array_bounds)
     568 VMMAll/PGMAll.cpp_CXXFLAGS     = -Wno-unused-function
     569 VMMAll/IEMAll.cpp_CXXFLAGS     = -Wno-unused-parameter
     570endif
    571571
    572572#
  • trunk/src/VBox/VMM/VMMAll/IEMAll.cpp

    r38077 r39070  
    587587*******************************************************************************/
    588588static VBOXSTRICTRC     iemRaiseTaskSwitchFaultCurrentTSS(PIEMCPU pIemCpu);
    589 static VBOXSTRICTRC     iemRaiseSelectorNotPresent(PIEMCPU pIemCpu, uint32_t iSegReg, uint32_t fAccess);
     589/*static VBOXSTRICTRC     iemRaiseSelectorNotPresent(PIEMCPU pIemCpu, uint32_t iSegReg, uint32_t fAccess);*/
    590590static VBOXSTRICTRC     iemRaiseSelectorNotPresentBySelector(PIEMCPU pIemCpu, uint16_t uSel);
    591591static VBOXSTRICTRC     iemRaiseSelectorNotPresentWithErr(PIEMCPU pIemCpu, uint16_t uErr);
     
    20232023
    20242024
     2025#ifdef SOME_UNUSED_FUNCTION
    20252026/** \#TS(err) - 0a.  */
    20262027DECL_NO_INLINE(static, VBOXSTRICTRC) iemRaiseTaskSwitchFaultWithErr(PIEMCPU pIemCpu, uint16_t uErr)
     
    20282029    return iemRaiseXcptOrInt(pIemCpu, 0, X86_XCPT_TS, IEM_XCPT_FLAGS_T_CPU_XCPT | IEM_XCPT_FLAGS_ERR, uErr, 0);
    20292030}
     2031#endif
    20302032
    20312033
     
    37473749
    37483750
     3751#ifdef SOME_UNUSED_FUNCTION
    37493752/**
    37503753 * Fetches a data dword and sign extends it to a qword.
     
    37733776    return rc;
    37743777}
     3778#endif
    37753779
    37763780
     
    41964200
    41974201
     4202#ifdef SOME_UNUSED_FUNCTION
    41984203/**
    41994204 * Pushes a dword onto the stack, using a temporary stack pointer.
     
    42264231    return rc;
    42274232}
     4233#endif
    42284234
    42294235
  • trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp

    r39038 r39070  
    20202020
    20212021
    2022 #ifdef IN_RING3
     2022#if defined(IN_RING3) && defined(SOME_UNUSED_FUNCTION)
    20232023/**
    20242024 * Cache PGMPhys memory access
  • trunk/src/VBox/VMM/VMMAll/PGMAllPool.cpp

    r39038 r39070  
    4545*******************************************************************************/
    4646RT_C_DECLS_BEGIN
    47 static void pgmPoolFlushAllInt(PPGMPOOL pPool);
    4847DECLINLINE(unsigned) pgmPoolTrackGetShadowEntrySize(PGMPOOLKIND enmKind);
    4948DECLINLINE(unsigned) pgmPoolTrackGetGuestEntrySize(PGMPOOLKIND enmKind);
     
    5756static const char *pgmPoolPoolKindToStr(uint8_t enmKind);
    5857#endif
    59 #if defined(VBOX_STRICT) && defined(PGMPOOL_WITH_OPTIMIZED_DIRTY_PT)
     58#if 0 /*defined(VBOX_STRICT) && defined(PGMPOOL_WITH_OPTIMIZED_DIRTY_PT)*/
    6059static void pgmPoolTrackCheckPTPaePae(PPGMPOOL pPool, PPGMPOOLPAGE pPage, PPGMSHWPTPAE pShwPT, PCX86PTPAE pGstPT);
    6160#endif
     
    13411340# ifdef PGMPOOL_WITH_OPTIMIZED_DIRTY_PT
    13421341
    1343 #  ifdef VBOX_STRICT
     1342#  if defined(VBOX_STRICT) && !defined(IN_RING3)
     1343
    13441344/**
    13451345 * Check references to guest physical memory in a PAE / PAE page table.
     
    14721472}
    14731473
    1474 #  endif /* VBOX_STRICT */
     1474#  endif /* VBOX_STRICT && !IN_RING3 */
    14751475
    14761476/**
     
    17431743    int   rc  = PGM_GCPHYS_2_PTR_EX(pVM, pPage->GCPhys, &pvGst); AssertReleaseRC(rc);
    17441744    memcpy(&pPool->aDirtyPages[idxFree].aPage[0], pvGst, (pPage->enmKind == PGMPOOLKIND_PAE_PT_FOR_PAE_PT) ? PAGE_SIZE : PAGE_SIZE/2);
    1745 #ifdef VBOX_STRICT
     1745#  ifdef VBOX_STRICT
    17461746    void *pvShw = PGMPOOL_PAGE_2_PTR(pVM, pPage);
    17471747    if (pPage->enmKind == PGMPOOLKIND_PAE_PT_FOR_PAE_PT)
     
    17501750        pgmPoolTrackCheckPTPae32Bit(pPool, pPage, (PPGMSHWPTPAE)pvShw, (PCX86PT)pvGst);
    17511751    PGM_DYNMAP_UNUSED_HINT_VM(pVM, pvShw);
    1752 #endif
     1752#  endif
    17531753    PGM_DYNMAP_UNUSED_HINT_VM(pVM, pvGst);
    17541754
  • trunk/src/VBox/VMM/VMMR0/HWACCMR0.cpp

    r38684 r39070  
    222222
    223223
     224#ifdef VBOX_STRICT
    224225/**
    225226 * Get the CPU ID on which the failure status code was reported.
     
    232233    return pFirstRc->idCpu;
    233234}
     235#endif /* VBOX_STRICT */
    234236
    235237
  • trunk/src/VBox/VMM/VMMR3/EM.cpp

    r38838 r39070  
    8484static DECLCALLBACK(int) emR3Save(PVM pVM, PSSMHANDLE pSSM);
    8585static DECLCALLBACK(int) emR3Load(PVM pVM, PSSMHANDLE pSSM, uint32_t uVersion, uint32_t uPass);
     86#if defined(LOG_ENABLED) || defined(VBOX_STRICT)
    8687static const char *emR3GetStateName(EMSTATE enmState);
     88#endif
    8789static int emR3Debug(PVM pVM, PVMCPU pVCpu, int rc);
    8890static int emR3RemStep(PVM pVM, PVMCPU pVCpu);
     
    672674
    673675
     676#if defined(LOG_ENABLED) || defined(VBOX_STRICT)
    674677/**
    675678 * Gets the EM state name.
     
    697700    }
    698701}
     702#endif /* LOG_ENABLED || VBOX_STRICT */
    699703
    700704
  • trunk/src/VBox/VMM/VMMR3/EMHwaccm.cpp

    r39034 r39070  
    8282
    8383
    84 #ifdef DEBUG
     84#if defined(DEBUG) && defined(SOME_UNUSED_FUNCTIONS)
    8585
    8686/**
  • trunk/src/VBox/VMM/VMMR3/EMRaw.cpp

    r38324 r39070  
    7676static int emR3RawGuestTrap(PVM pVM, PVMCPU pVCpu);
    7777static int emR3PatchTrap(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx, int gcret);
    78 static int emR3SingleStepExecRem(PVM pVM, uint32_t cIterations);
    7978static int emR3RawPrivileged(PVM pVM, PVMCPU pVCpu);
    8079static int emR3ExecuteIOInstruction(PVM pVM, PVMCPU pVCpu);
  • trunk/src/VBox/VMM/VMMR3/PDMAsyncCompletion.cpp

    r39014 r39070  
    595595}
    596596
     597#ifdef SOME_UNUSED_FUNCTION
    597598static void pdmacBwMgrUnlink(PPDMACBWMGR pBwMgr)
    598599{
     
    615616    rc = RTCritSectLeave(&pEpClass->CritSect); AssertRC(rc);
    616617}
     618#endif /* SOME_UNUSED_FUNCTION */
    617619
    618620static int pdmacAsyncCompletionBwMgrCreate(PPDMASYNCCOMPLETIONEPCLASS pEpClass, const char *pcszBwMgr, uint32_t cbTransferPerSecMax,
  • trunk/src/VBox/VMM/VMMR3/PDMAsyncCompletionFile.cpp

    r39034 r39070  
    5050#ifdef VBOX_WITH_DEBUGGER
    5151static DECLCALLBACK(int) pdmacEpFileErrorInject(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR pArgs, unsigned cArgs);
     52# ifdef PDM_ASYNC_COMPLETION_FILE_WITH_DELAY
    5253static DECLCALLBACK(int) pdmacEpFileDelayInject(PCDBGCCMD pCmd, PDBGCCMDHLP pCmdHlp, PVM pVM, PCDBGCVAR pArgs, unsigned cArgs);
     54# endif
    5355#endif
    5456
     
    236238}
    237239
     240#ifdef SOME_UNUSED_FUNCTION
    238241static int pdmacFileAioMgrRemoveEndpoint(PPDMACEPFILEMGR pAioMgr, PPDMASYNCCOMPLETIONENDPOINTFILE pEndpoint)
    239242{
     
    249252    return rc;
    250253}
     254#endif
    251255
    252256static int pdmacFileAioMgrCloseEndpoint(PPDMACEPFILEMGR pAioMgr, PPDMASYNCCOMPLETIONENDPOINTFILE pEndpoint)
  • trunk/src/VBox/VMM/VMMR3/PDMAsyncCompletionFileNormal.cpp

    r39035 r39070  
    102102}
    103103
     104#if 0 /* currently unused */
    104105/**
    105106 * Sorts the endpoint list with insertion sort.
     
    178179#endif
    179180}
     181#endif /* currently unused */
    180182
    181183/**
     
    216218    return true;
    217219}
     220
     221#if 0 /* currently unused */
    218222
    219223static bool pdmacFileAioMgrNormalIsBalancePossible(PPDMACEPFILEMGR pAioMgr)
     
    315319        Log(("AIOMgr: Load balancing would not improve anything\n"));
    316320}
     321
     322#endif /* unused */
    317323
    318324/**
  • trunk/src/VBox/VMM/VMMR3/STAM.cpp

    r35696 r39070  
    503503
    504504
     505#ifdef VBOX_STRICT
    505506/**
    506507 * Divide the strings into sub-strings using '/' as delimiter
     
    536537    }
    537538}
     539#endif /* VBOX_STRICT */
    538540
    539541
  • trunk/src/VBox/VMM/VMMR3/VM.cpp

    r39034 r39070  
    127127static int                  vmR3InitGC(PVM pVM);
    128128static int                  vmR3InitDoCompleted(PVM pVM, VMINITCOMPLETED enmWhat);
     129#ifdef LOG_ENABLED
    129130static DECLCALLBACK(size_t) vmR3LogPrefixCallback(PRTLOGGER pLogger, char *pchBuf, size_t cchBuf, void *pvUser);
     131#endif
    130132static void                 vmR3DestroyUVM(PUVM pUVM, uint32_t cMilliesEMTWait);
    131133static void                 vmR3AtDtor(PVM pVM);
     
    11151117
    11161118
     1119#ifdef LOG_ENABLED
    11171120/**
    11181121 * Logger callback for inserting a custom prefix.
     
    11441147    return 2;
    11451148}
     1149#endif /* LOG_ENABLED */
    11461150
    11471151
  • trunk/src/VBox/VMM/testcase/Makefile.kmk

    r38152 r39070  
    195195tstIEMCheckMc_SOURCES   = tstIEMCheckMc.cpp
    196196tstIEMCheckMc_LIBS      = $(LIB_RUNTIME)
     197ifneq ($(KBUILD_TARGET),win)
     198tstIEMCheckMc_CXXFLAGS  = -Wno-unused-parameter
     199endif
    197200
    198201tstMMHyperHeap_TEMPLATE = VBOXR3TSTEXE
  • trunk/src/VBox/VMM/testcase/tstIEMCheckMc.cpp

    r38077 r39070  
    3939
    4040#define CHK_TYPE(a_ExpectedType, a_Param) \
    41     do { a_ExpectedType const * pCheckType = &(a_Param); } while (0)
     41    do { a_ExpectedType const * pCheckType = &(a_Param); NOREF(pCheckType); } while (0)
    4242#define CHK_PTYPE(a_ExpectedType, a_Param) \
    43     do { a_ExpectedType pCheckType = (a_Param); } while (0)
     43    do { a_ExpectedType pCheckType = (a_Param); NOREF(pCheckType); } while (0)
    4444
    4545#define CHK_CONST(a_ExpectedType, a_Const) \
     
    173173 * @{  */
    174174
    175 #define IEM_ARG_CHECK_CALLBACK(a_idx, a_User) int RT_CONCAT(iArgCheck_,a_idx)
     175#define IEM_ARG_CHECK_CALLBACK(a_idx, a_User) int RT_CONCAT(iArgCheck_,a_idx); NOREF(RT_CONCAT(iArgCheck_,a_idx))
    176176#define IEM_MC_BEGIN(a_cArgs, a_cLocals) \
    177177    { \
     
    364364#define IEM_MC_POP_U32(a_pu32Value)                                     do {} while (0)
    365365#define IEM_MC_POP_U64(a_pu64Value)                                     do {} while (0)
    366 #define IEM_MC_MEM_MAP(a_pMem, a_fAccess, a_iSeg, a_GCPtrMem, a_iArg)   do {} while (0)
     366#define IEM_MC_MEM_MAP(a_pMem, a_fAccess, a_iSeg, a_GCPtrMem, a_iArg)   do { NOREF(a_fAccess); } while (0)
    367367#define IEM_MC_MEM_MAP_EX(a_pvMem, a_fAccess, a_cbMem, a_iSeg, a_GCPtrMem, a_iArg)  do {} while (0)
    368368#define IEM_MC_MEM_COMMIT_AND_UNMAP(a_pvMem, a_fAccess)                 do {} while (0)
  • trunk/src/VBox/VMM/testcase/tstVMM.cpp

    r38838 r39070  
    206206
    207207    int ch;
    208     int i = 1;
    209208    RTGETOPTUNION ValueUnion;
    210209    RTGETOPTSTATE GetState;
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