VirtualBox

Changeset 83832 in vbox for trunk/src/VBox/Additions/3D/win


Ignore:
Timestamp:
Apr 19, 2020 2:12:33 PM (5 years ago)
Author:
vboxsync
Message:

Additions/3D: VC++ 14.1 adjustments and warnings. bugref:8489

Location:
trunk/src/VBox/Additions/3D/win
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/3D/win/VBoxGL/Makefile.kmk

    r82968 r83832  
    2727VBoxGL_TEMPLATE = VBoxMesa3DGuestR3DllMinVista
    2828# -wd4005: '__useHeader' : redefinition
    29 VBoxGL_CFLAGS   = -wd4005
     29VBoxGL_CFLAGS  := -wd4005
     30if "$(VBOX_NEWER_VCC_TOOL_STEM)" >= "VCC141"
     31# -wd4204: nonstandard extension used: non-constant aggregate initializer
     32# -wd4459: stw_device.h(102): warning C4459: declaration of 'stw_dev' hides global declaration
     33# -wd4668: c99_compat.h(99): warning C4668: '__STDC_VERSION__' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
     34VBoxGL_CFLAGS  += -wd4204 -wd4459 -wd4668
     35endif
    3036VBoxGL_INCS     = \
    3137        $(VBOX_PATH_3D)/win/include \
  • trunk/src/VBox/Additions/3D/win/VBoxGL/VBoxGL.c

    r82968 r83832  
    272272        {
    273273            D3DKMT_HANDLE hDevice = GaDrvEnvKmtDeviceHandle(pEnv);
    274             NTSTATUS Status = vboxKmtOpenSharedSurface(hDevice, (D3DKMT_HANDLE)hSharedSurface, surface);
     274            NTSTATUS Status = vboxKmtOpenSharedSurface(hDevice, (D3DKMT_HANDLE)(uintptr_t)hSharedSurface, surface);
    275275            if (Status != STATUS_SUCCESS)
    276276            {
  • trunk/src/VBox/Additions/3D/win/VBoxICD/Makefile.kmk

    r82968 r83832  
    2626VBoxICD_TEMPLATE = VBoxMesa3DGuestR3DllMinVista
    2727# -wd4005: '__useHeader' : redefinition
    28 VBoxICD_CFLAGS   = -wd4005
     28VBoxICD_CFLAGS  := -wd4005
     29if "$(VBOX_NEWER_VCC_TOOL_STEM)" >= "VCC141"
     30# -wd4255: 'PFND3DKMT_CHECKEXCLUSIVEOWNERSHIP': no function prototype given: converting '()' to '(void)'
     31VBoxICD_CFLAGS  += -wd4255
     32endif
     33
    2934VBoxICD_INCS     = \
    3035        $(VBOX_PATH_3D)/win/include \
  • trunk/src/VBox/Additions/3D/win/VBoxWddmUmHlp/VBoxMpLogger.cpp

    r82968 r83832  
    107107    char *pszBuffer = &szBuffer[0];
    108108
    109     int cbWritten = _snprintf(pszBuffer, cbBuffer, "['%s' 0x%x.0x%x]: ",
     109    int cbWritten = _snprintf(pszBuffer, cbBuffer, "['%s' 0x%lx.0x%lx]: ",
    110110                              vboxUmLogGetModuleName(), GetCurrentProcessId(), GetCurrentThreadId());
    111111    if (cbWritten < 0 || cbWritten >= cbBuffer)
  • trunk/src/VBox/Additions/3D/win/VBoxWddmUmHlp/VBoxWddmUmHlp.h

    r82968 r83832  
    2424#include <iprt/win/d3d9.h>
    2525#include <d3dumddi.h>
    26 #include <d3dkmthk.h>
     26#include <iprt/win/d3dkmthk.h>
    2727
    2828#include <iprt/asm.h>
  • trunk/src/VBox/Additions/3D/win/include/VBoxGaDriver.h

    r82968 r83832  
    7373} WDDMGalliumDriverEnv;
    7474
     75struct pipe_context;
     76struct pipe_screen;
     77struct pipe_resource;
     78
    7579typedef struct pipe_screen * WINAPI FNGaDrvScreenCreate(const WDDMGalliumDriverEnv *pEnv);
    7680typedef FNGaDrvScreenCreate *PFNGaDrvScreenCreate;
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