VirtualBox

Changeset 106496 in vbox


Ignore:
Timestamp:
Oct 19, 2024 3:10:22 AM (7 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
165328
Message:

iprt/win,iprt/nt: Shut up C5249 in the SDK headers (signed enum types used in bitfields). jiraref:VBP-1171

Location:
trunk/include/iprt
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/nt/dispmprt.h

    r106061 r106496  
    4848#  pragma warning(disable:4255) /* video.h(1776) : warning C4255: 'VideoPortGetCurrentIrql' : no function prototype given: converting '()' to '(void)' */
    4949# endif
     50# if _MSC_VER >= 1930 /*RT_MSC_VER_VC143*/
     51#  pragma warning(disable:5249) /* d3dkmdt.h(551): warning C5249: '_D3DKMDT_VIDEO_SIGNAL_INFO::<unnamed-tag>::ScanLineOrdering' of type 'D3DDDI_VIDEO_SIGNAL_SCANLINE_ORDERING' has named enumerators with values that cannot be represented in the given bit field width of '3'. */
     52# endif
    5053#endif
    5154
  • trunk/include/iprt/win/d3dhal.h

    r106489 r106496  
    11/** @file
    2  * Safe way to include d3d8.h.
     2 * Safe way to include d3dhal.h.
    33 */
    44
     
    3434 */
    3535
    36 #ifndef IPRT_INCLUDED_win_d3d8_h
    37 #define IPRT_INCLUDED_win_d3d8_h
     36#ifndef IPRT_INCLUDED_win_d3dhal_h
     37#define IPRT_INCLUDED_win_d3dhal_h
    3838#ifndef RT_WITHOUT_PRAGMA_ONCE
    3939# pragma once
     
    4242#ifdef _MSC_VER
    4343# pragma warning(push)
    44 /*# pragma warning(disable:4163)*/
    45 # pragma warning(disable:4668) /* warning C4668: 'WHEA_DOWNLEVEL_TYPE_NAMES' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif' */
    46 # pragma warning(disable:4255) /* warning C4255: 'ObGetFilterVersion' : no function prototype given: converting '()' to '(void)' */
    47 # if _MSC_VER >= 1800 /*RT_MSC_VER_VC120*/
    48 #  pragma warning(disable:4005) /* sdk/v7.1/include/sal_supp.h(57) : warning C4005: '__useHeader' : macro redefinition */
     44# if _MSC_VER >= 1930 /*RT_MSC_VER_VC143*/
     45#  pragma warning(disable:5249) /* dxva9typ.h(361): warning C5249: '_DXVA_ExtendedFormat::NominalRange' of type 'DXVA_NominalRange' has named enumerators with values that cannot be represented in the given bit field width of '3'. */
    4946# endif
    5047#endif
    5148
    52 #include <d3d8.h>
     49#include <d3dhal.h>
    5350
    5451#ifdef _MSC_VER
     
    5754
    5855
    59 #endif /* !IPRT_INCLUDED_win_d3d8_h */
     56#endif /* !IPRT_INCLUDED_win_d3dhal_h */
    6057
  • trunk/include/iprt/win/d3dkmthk.h

    r106061 r106496  
    4545#  pragma warning(disable:4255) /* d3dkmthk.h(2061): warning C4255: 'PFND3DKMT_CHECKEXCLUSIVEOWNERSHIP': no function prototype given: converting '()' to '(void)' */
    4646# endif
     47# if _MSC_VER >= 1930 /*RT_MSC_VER_VC143*/
     48#  pragma warning(disable:5249) /* d3dkmthk.h(208): warning C5249: '_D3DKMDT_DISPLAYMODE_FLAGS::ModePruningReason' of type 'D3DKMDT_MODE_PRUNING_REASON' has named enumerators with values that cannot be represented in the given bit field width of '4'. */
     49# endif
    4750#endif
    4851
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette