VirtualBox

Changeset 62436 in vbox for trunk/src


Ignore:
Timestamp:
Jul 22, 2016 12:46:53 PM (8 years ago)
Author:
vboxsync
Message:

IPRT/R0/RC: MSC level 4 warnings

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

Legend:

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

    r60883 r62436  
    26662666            uint16_t const iGroup = RT_HI_U16(fFlagsAndGroup);
    26672667            if (   iGroup != UINT16_MAX
    2668                  && (   (pLogger->afGroups[iGroup < pLogger->cGroups ? iGroup : 0] & (fFlags | RTLOGGRPFLAGS_ENABLED))
    2669                      != (fFlags | RTLOGGRPFLAGS_ENABLED)))
     2668                 && (   (pLogger->afGroups[iGroup < pLogger->cGroups ? iGroup : 0] & (fFlags | (uint32_t)RTLOGGRPFLAGS_ENABLED))
     2669                     != (fFlags | (uint32_t)RTLOGGRPFLAGS_ENABLED)))
    26702670            pLogger = NULL;
    26712671        }
  • trunk/src/VBox/Runtime/common/log/logrel.cpp

    r57358 r62436  
    9797            uint16_t const iGroup = RT_HI_U16(fFlagsAndGroup);
    9898            if (   iGroup != UINT16_MAX
    99                  && (   (pLogger->afGroups[iGroup < pLogger->cGroups ? iGroup : 0] & (fFlags | RTLOGGRPFLAGS_ENABLED))
    100                      != (fFlags | RTLOGGRPFLAGS_ENABLED)))
     99                 && (   (pLogger->afGroups[iGroup < pLogger->cGroups ? iGroup : 0] & (fFlags | (uint32_t)RTLOGGRPFLAGS_ENABLED))
     100                     != (fFlags | (uint32_t)RTLOGGRPFLAGS_ENABLED)))
    101101            pLogger = NULL;
    102102        }
  • trunk/src/VBox/Runtime/common/time/timesupref.h

    r54940 r62436  
    314314                 * No joy must try again.
    315315                 */
     316#ifdef _MSC_VER
     317# pragma warning(disable: 4702)
     318#endif
    316319#ifndef IN_RING3
    317320                ASMSetFlags(uFlags);
  • trunk/src/VBox/Runtime/generic/critsect-generic.cpp

    r59039 r62436  
    298298         */
    299299        IPRT_CRITSECT_WAITING(pCritSect, NULL, cLockers, (void *)pCritSect->NativeThreadOwner);
    300 #ifndef RTCRITSECT_STRICT
     300#if !defined(RTCRITSECT_STRICT) && defined(IN_RING3)
    301301        RTTHREAD hThreadSelf = RTThreadSelf();
    302302#endif
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