VirtualBox

Changeset 83832 in vbox


Ignore:
Timestamp:
Apr 19, 2020 2:12:33 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
137359
Message:

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

Location:
trunk/src/VBox/Additions/3D
Files:
7 edited

Legend:

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

    r82968 r83832  
    9393#  -wd4805: '|=' : unsafe mix of type 'GLboolean' and type 'bool' in operation
    9494#  -wd4918: 'y' : invalid character in pragma optimization list
    95 VBOX_MESA3D_VCC_DISABLED_WARNINGS           = \
     95VBOX_MESA3D_VCC_DISABLED_WARNINGS          := \
    9696        -wd4005 -wd4013 -wd4018 -wd4054 -wd4057 -wd4090 -wd4098 -wd4099 -wd4100 -wd4101 -wd4130 -wd4132 -wd4146 \
    9797        -wd4152 -wd4189 -wd4200 -wd4204 -wd4206 -wd4211 -wd4221 -wd4245 -wd4255 -wd4258 -wd4265 -wd4267 -wd4266 \
    9898        -wd4287 -wd4291 -wd4305 -wd4306 -wd4310 -wd4311 -wd4351 -wd4355 -wd4388 -wd4389 -wd4640 -wd4668 -wd4700 \
    9999        -wd4701 -wd4702 -wd4703 -wd4756 -wd4800 -wd4805 -wd4918
     100if "$(VBOX_NEWER_VCC_TOOL_STEM)" >= "VCC141"
     101# -wd4458: declaration of 'array' hides class member
     102# -wd4477: 'fprintf' : format string '%u' requires an argument of type 'unsigned int', but variadic argument 1 has type 'LONGLONG'
     103# -wd4774: 'printf' : format string expected in argument 1 is not a string literal
     104# -wd4456: declaration of 'pos_dst' hides previous local declaration
     105# -wd4777: '_snprintf' : format string '%u' requires an argument of type 'unsigned int', but variadic argument 1 has type 'const DWORD'
     106# -wd4459: declaration of 'stw_dev' hides global declaration
     107# -wd4457: declaration of 'usage' hides function parameter
     108VBOX_MESA3D_VCC_DISABLED_WARNINGS          += \
     109        -wd4458 -wd4477 -wd4774 -wd4456 -wd4777 -wd4459 -wd4457
     110endif
     111
    100112TEMPLATE_VBoxMesa3DGuestR3Lib_CFLAGS.win   += $(VBOX_MESA3D_VCC_DISABLED_WARNINGS)
    101113TEMPLATE_VBoxMesa3DGuestR3Lib_CXXFLAGS.win += $(VBOX_MESA3D_VCC_DISABLED_WARNINGS)
     
    111123        $(VBOX_MESA)/src/gallium/state_trackers/wgl \
    112124        $(TEMPLATE_VBoxMesa3DGuestR3Dll_INCS)
     125ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
     126TEMPLATE_VBoxMesa3DGuestR3Lib_DEFS          = \
     127        $(TEMPLATE_VBoxMesa3DGuestR3Dll_DEFS) \
     128        PACKAGE_VERSION="$(VBOX_MESA)" \
     129        PACKAGE_BUGREPORT="$(VBOX_MESA)"
     130else
    113131TEMPLATE_VBoxMesa3DGuestR3Lib_DEFS          = \
    114132        $(TEMPLATE_VBoxMesa3DGuestR3Dll_DEFS) \
    115133        PACKAGE_VERSION=\"$(VBOX_MESA)\" \
    116134        PACKAGE_BUGREPORT=\"$(VBOX_MESA)\"
     135endif
    117136# For wgl, glapi and mesa
    118137TEMPLATE_VBoxMesa3DGuestR3Lib_DEFS         += \
  • 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.

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