VirtualBox

Ignore:
Timestamp:
Jul 28, 2016 11:44:29 PM (8 years ago)
Author:
vboxsync
Message:

SUPDrv: warnings

Location:
trunk/src/VBox/HostDrivers/Support
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrv.cpp

    r62664 r62665  
    57055705            return VERR_INVALID_FUNCTION;
    57065706    }
     5707    RT_NOREF1(pDevExt);
    57075708    return rc;
    57085709#else
  • trunk/src/VBox/HostDrivers/Support/SUPDrvSem.cpp

    r62490 r62665  
    6161{
    6262    Assert(pvUser2 == NULL);
    63     NOREF(pvObj);
     63    RT_NOREF2(pvObj, pvUser2);
    6464    RTSemEventDestroy((RTSEMEVENT)pvUser1);
    6565}
     
    218218SUPDECL(uint32_t) SUPSemEventGetResolution(PSUPDRVSESSION pSession)
    219219{
     220    RT_NOREF1(pSession);
    220221    Assert(SUP_IS_SESSION_VALID(pSession));
    221222    return RTSemEventGetResolution();
     
    233234{
    234235    Assert(pvUser2 == NULL);
    235     NOREF(pvObj);
     236    RT_NOREF2(pvObj, pvUser2);
    236237    RTSemEventMultiDestroy((RTSEMEVENTMULTI)pvUser1);
    237238}
     
    417418SUPDECL(uint32_t) SUPSemEventMultiGetResolution(PSUPDRVSESSION pSession)
    418419{
     420    RT_NOREF1(pSession);
    419421    Assert(SUP_IS_SESSION_VALID(pSession));
    420422    return RTSemEventMultiGetResolution();
  • trunk/src/VBox/HostDrivers/Support/SUPDrvTracer.cpp

    r62490 r62665  
    17231723     */
    17241724    int             rc;
    1725     size_t const    cProbeLocs   = pVtgHdr->cbProbeLocs / (pVtgHdr->cBits == 32 ? sizeof(VTGPROBELOC32) : sizeof(VTGPROBELOC64));
    1726     size_t const    cbProbeLocs  = cProbeLocs * sizeof(VTGPROBELOC);
    1727     size_t const    offProbeLocs = RT_ALIGN(pVtgHdr->cbObj, 8);
     1725    uint32_t const  cProbeLocs   = pVtgHdr->cbProbeLocs / (pVtgHdr->cBits == 32 ? sizeof(VTGPROBELOC32) : sizeof(VTGPROBELOC64));
     1726    uint32_t const  cbProbeLocs  = cProbeLocs * sizeof(VTGPROBELOC);
     1727    uint32_t const  offProbeLocs = RT_ALIGN(pVtgHdr->cbObj, 8);
    17281728    size_t const    cb           = offProbeLocs + cbProbeLocs + cbStrTab + 1;
    17291729    PSUPDRVVTGCOPY  pThis = (PSUPDRVVTGCOPY)RTMemAlloc(RT_OFFSETOF(SUPDRVVTGCOPY, Hdr) + cb);
  • trunk/src/VBox/HostDrivers/Support/SUPLib.cpp

    r62490 r62665  
    19861986     * It's somewhat easier to do that here than from ring-0.
    19871987     */
    1988     size_t const        cProbeLocs  = pVtgHdr->cbProbeLocs
     1988    uint32_t const      cProbeLocs  = pVtgHdr->cbProbeLocs
    19891989                                    / (pVtgHdr->cBits == 32 ? sizeof(VTGPROBELOC32) : sizeof(VTGPROBELOC64));
    19901990    PVTGPROBELOC        paProbeLocs = (PVTGPROBELOC)((uintptr_t)pVtgHdr + pVtgHdr->offProbeLocs);
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