VirtualBox

Changeset 97955 in vbox


Ignore:
Timestamp:
Jan 3, 2023 3:46:42 PM (2 years ago)
Author:
vboxsync
Message:

IPRT: Warnings (add/linux).

Location:
trunk/src/VBox/Runtime
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/ldr/ldrMachO.cpp

    r96407 r97955  
    31143114                case S_LAZY_SYMBOL_POINTERS:
    31153115                {
    3116                     uint32_t       *pauDstPtrs = (uint32_t *)((uintptr_t)pvBits + pThis->paSections[iSect].RVA);
     3116                    uint32_t       *pauDstPtrs = (uint32_t *)((uintptr_t)pvBits + (uintptr_t)pThis->paSections[iSect].RVA);
    31173117                    uint32_t  const cDstPtrs   = pThis->paSections[iSect].cb / sizeof(pauDstPtrs[0]);
    31183118                    uint32_t  const idxSrcSkip = pSect->reserved1;
     
    31863186                case S_LAZY_SYMBOL_POINTERS:
    31873187                {
    3188                     uint64_t       *pauDstPtrs = (uint64_t *)((uintptr_t)pvBits + pThis->paSections[iSect].RVA);
     3188                    uint64_t       *pauDstPtrs = (uint64_t *)((uintptr_t)pvBits + (uintptr_t)pThis->paSections[iSect].RVA);
    31893189                    uint32_t  const cDstPtrs   = pThis->paSections[iSect].cb / sizeof(pauDstPtrs[0]);
    31903190                    uint32_t  const idxSrcSkip = pSect->reserved1;
  • trunk/src/VBox/Runtime/r3/posix/localipc-posix.cpp

    r97894 r97955  
    294294    AssertReturn(pThis->Name.sun_path[0] != '\0', VERR_INVALID_STATE);
    295295
    296     if (chown(pThis->Name.sun_path, -1, gid) == 0)
     296    if (chown(pThis->Name.sun_path, (uid_t)-1, gid) == 0)
    297297    {
    298298        if (chmod(pThis->Name.sun_path, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP) == 0)
     
    11361136        }
    11371137        else
    1138         {
    11391138            rc = RTErrConvertFromErrno(errno);
    1140         }
    11411139
    11421140        int rc2 = RTCritSectLeave(&pThis->CritSect);
  • trunk/src/VBox/Runtime/r3/posix/serialport-posix.cpp

    r96407 r97955  
    11051105
    11061106        int rcPsx = 0;
    1107         int msTimeoutLeft = msTimeout == RT_INDEFINITE_WAIT ? -1 : msTimeout;
     1107        int msTimeoutLeft = msTimeout == RT_INDEFINITE_WAIT ? -1 : (int)msTimeout;
    11081108        while (msTimeoutLeft != 0)
    11091109        {
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