VirtualBox

Changeset 62634 in vbox for trunk


Ignore:
Timestamp:
Jul 28, 2016 4:18:34 PM (8 years ago)
Author:
vboxsync
Message:

includes: Workaround for C4668 & C4255 warnings in MSC and WDK headers.

Location:
trunk/include
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/hm_vmx.h

    r62476 r62634  
    3535   when targeting AMD64. */
    3636#if RT_INLINE_ASM_USES_INTRIN >= 16 && defined(RT_ARCH_AMD64)
     37# pragma warning(push)
     38# pragma warning(disable:4668) /* Several incorrect __cplusplus uses. */
     39# pragma warning(disable:4255) /* Incorrect __slwpcb prototype. */
    3740# include <intrin.h>
     41# pragma warning(pop)
    3842/* We always want them as intrinsics, no functions. */
    3943# pragma intrinsic(__vmx_on)
  • trunk/include/VBox/vmm/stam.h

    r62476 r62634  
    3131#ifdef _MSC_VER
    3232# if _MSC_VER >= 1400
     33#  pragma warning(push)
     34#  pragma warning(disable:4668) /* Several incorrect __cplusplus uses. */
     35#  pragma warning(disable:4255) /* Incorrect __slwpcb prototype. */
    3336#  include <intrin.h>
     37#  pragma warning(pop)
    3438# endif
    3539#endif
  • trunk/include/iprt/asm-amd64-x86.h

    r62473 r62634  
    3434
    3535#if defined(_MSC_VER) && RT_INLINE_ASM_USES_INTRIN
     36# pragma warning(push)
     37# pragma warning(disable:4668) /* Several incorrect __cplusplus uses. */
     38# pragma warning(disable:4255) /* Incorrect __slwpcb prototype. */
    3639# include <intrin.h>
     40# pragma warning(pop)
    3741   /* Emit the intrinsics at all optimization levels. */
    3842# pragma intrinsic(_ReadWriteBarrier)
  • trunk/include/iprt/asm-math.h

    r62473 r62634  
    3030
    3131#if defined(_MSC_VER) && RT_INLINE_ASM_USES_INTRIN
     32# pragma warning(push)
     33# pragma warning(disable:4668) /* Several incorrect __cplusplus uses. */
     34# pragma warning(disable:4255) /* Incorrect __slwpcb prototype. */
    3235# include <intrin.h>
     36# pragma warning(pop)
    3337  /* Emit the intrinsics at all optimization levels. */
    3438# pragma intrinsic(__emul)
  • trunk/include/iprt/asm.h

    r62592 r62634  
    4141
    4242#if defined(_MSC_VER) && RT_INLINE_ASM_USES_INTRIN
     43# pragma warning(push)
     44# pragma warning(disable:4668) /* Several incorrect __cplusplus uses. */
     45# pragma warning(disable:4255) /* Incorrect __slwpcb prototype. */
    4346# include <intrin.h>
     47# pragma warning(pop)
    4448  /* Emit the intrinsics at all optimization levels. */
    4549# pragma intrinsic(_ReadWriteBarrier)
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