VirtualBox

Changeset 78264 in vbox


Ignore:
Timestamp:
Apr 23, 2019 6:53:43 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
130212
Message:

Config.kmk,GuestHost\OpenGL,HostServices\SharedOpenGL: Fix a bunch of compiler warnings and enable them again [build fixes]

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r78263 r78264  
    73497349 TEMPLATE_VBOXCROGLR3HOSTDLL_OBJCFLAGS       = $(TEMPLATE_VBOXR3NP_OBJCFLAGS) -Wno-deprecated-declarations
    73507350else ifeq ($(KBUILD_TARGET),win)
    7351  #   -wd4054: renderspu_wgl.c(281) : warning C4054: 'type cast' : from function pointer 'HWND (__cdecl *)()' to data pointer 'void *'
    73527351 #   -wd4055: renderspu.c(1553) : warning C4055: 'type cast' : from data pointer 'const GLvoid *' to function pointer 'PFNVCRSERVER_CLIENT_CALLOUT'
    73537352 TEMPLATE_VBOXCROGLR3HOSTDLL_CFLAGS          = $(TEMPLATE_$(TEMPLATE_VBOXCROGLR3HOSTDLL_EXTENDS)_CFLAGS) \
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/presenter/server_presenter.cpp

    r78263 r78264  
    225225    float strY = ((float)dstHeight) / srcHeight;
    226226    bool fScale = (dstWidth != srcWidth || dstHeight != srcHeight);
    227     Assert(fScale);
     227    Assert(fScale); RT_NOREF(fScale);
    228228
    229229    /* 'List' contains the destination rectangles to be updated (in pDst coords). */
  • trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_shaders.cpp

    r78193 r78264  
    453453
    454454    size_t cchStr = CHECK_STRING_FROM_PTR_UPDATE_NO_RETURN(pState, name);
    455     if (RT_UNLIKELY(cchStr == ~(size_t)0 || packet_length != cchStr + 2 * sizeof(CRNetworkPointer)))
     455    if (RT_UNLIKELY(cchStr == ~(size_t)0U || packet_length != cchStr + 2 * sizeof(CRNetworkPointer)))
    456456    {
    457457        crError("crUnpackExtendGetAttribLocation: packet_length is corrupt");
     
    474474
    475475    size_t cchStr = CHECK_STRING_FROM_PTR_UPDATE_NO_RETURN(pState, name);
    476     if (RT_UNLIKELY(cchStr == ~(size_t)0 || packet_length != cchStr + 2 * sizeof(CRNetworkPointer)))
     476    if (RT_UNLIKELY(cchStr == ~(size_t)0U || packet_length != cchStr + 2 * sizeof(CRNetworkPointer)))
    477477    {
    478478        crError("crUnpackExtendGetUniformLocation: packet_length is corrupt");
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