VirtualBox

Changeset 62948 in vbox


Ignore:
Timestamp:
Aug 4, 2016 6:58:58 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109551
Message:

VBoxSVGA3D: warnings

Location:
trunk/src/VBox/Devices
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/shaderlib/directx.c

    r57933 r62948  
    252252    GL_EXTCALL(glBindProgramARB(GL_VERTEX_PROGRAM_ARB, prog));
    253253    GL_EXTCALL(glProgramStringARB(GL_VERTEX_PROGRAM_ARB, GL_PROGRAM_FORMAT_ASCII_ARB,
    254                                   strlen(testcode), testcode));
     254                                  (GLsizei)strlen(testcode), testcode));
    255255    if(glGetError() != 0) {
    256256        TRACE("OpenGL implementation does not allow indirect addressing offsets > 63\n");
     
    494494    GL_EXTCALL(glBindProgramARB(GL_VERTEX_PROGRAM_ARB, prog));
    495495    GL_EXTCALL(glProgramStringARB(GL_VERTEX_PROGRAM_ARB, GL_PROGRAM_FORMAT_ASCII_ARB,
    496                                   strlen(testcode), testcode));
     496                                  (GLsizei)strlen(testcode), testcode));
    497497    glGetIntegerv(GL_PROGRAM_ERROR_POSITION_ARB, &pos);
    498498    if(pos != -1)
     
    19281928BOOL IWineD3DImpl_FillGLCaps(struct wined3d_adapter *adapter, struct VBOXVMSVGASHADERIF *pVBoxShaderIf)
    19291929{
     1930#ifndef VBOX_WITH_VMSVGA
    19301931    struct wined3d_driver_info *driver_info = &adapter->driver_info;
     1932#endif
    19311933    struct wined3d_gl_info *gl_info = &adapter->gl_info;
    19321934#ifndef VBOX_WITH_VMSVGA
     
    19351937#endif
    19361938    const char *gl_vendor_str, *gl_renderer_str, *gl_version_str;
     1939#ifndef VBOX_WITH_VMSVGA
    19371940    struct fragment_caps fragment_caps;
     1941#endif
    19381942    enum wined3d_gl_vendor gl_vendor;
    19391943    enum wined3d_pci_vendor card_vendor;
     
    19421946    GLfloat     gl_floatv[2];
    19431947    unsigned    i;
     1948#ifndef VBOX_WITH_VMSVGA
    19441949    HDC         hdc;
     1950#endif
    19451951    unsigned int vidmem=0;
    19461952    DWORD gl_version;
     1953#ifndef VBOX_WITH_VMSVGA
    19471954    size_t len;
     1955#endif
    19481956
    19491957    TRACE_(d3d_caps)("(%p)\n", gl_info);
     
    20742082            check_gl_extension(gl_info, szCurExt);
    20752083    }
    2076 #else /* VBOX_WITH_VMSVGA */
     2084#else /* !VBOX_WITH_VMSVGA */
    20772085    while (*GL_Extensions)
    20782086    {
     
    21012109        }
    21022110    }
    2103 #endif
     2111#endif /* !VBOX_WITH_VMSVGA */
    21042112
    21052113#ifdef VBOX_WITH_VMSVGA
  • trunk/src/VBox/Devices/Graphics/shaderlib/glsl_shader.c

    r60038 r62948  
    20142014    {
    20152015        enum complex_fixup complex_fixup = get_complex_fixup(fixup);
    2016         FIXME("Complex fixup (%#x) not supported\n",complex_fixup);
     2016        FIXME("Complex fixup (%#x) not supported\n",complex_fixup); (void)complex_fixup;
    20172017        return;
    20182018    }
     
    36403640static void shader_glsl_texbem(const struct wined3d_shader_instruction *ins)
    36413641{
    3642     IWineD3DBaseShaderImpl *shader = (IWineD3DBaseShaderImpl *)ins->ctx->shader;
    3643     IWineD3DDeviceImpl *deviceImpl = (IWineD3DDeviceImpl *)shader->baseShader.device;
     3642    /*IWineD3DBaseShaderImpl *shader = (IWineD3DBaseShaderImpl *)ins->ctx->shader;
     3643    IWineD3DDeviceImpl *deviceImpl = (IWineD3DDeviceImpl *)shader->baseShader.device; - unused */
    36443644    const struct wined3d_gl_info *gl_info = ins->ctx->gl_info;
    36453645    const struct shader_glsl_ctx_priv *priv = ins->ctx->backend_data;
  • trunk/src/VBox/Devices/Graphics/shaderlib/libWineStub/debug.c

    r62934 r62948  
    177177            for (i = 0; i < sizeof(debug_classes)/sizeof(debug_classes[0]); i++)
    178178            {
    179                 int len = strlen(debug_classes[i]);
     179                int len = (int)strlen(debug_classes[i]);
    180180                if (len != (p - opt)) continue;
    181181                if (!memcmp( opt, debug_classes[i], len ))  /* found it */
     
    318318int interlocked_xchg_add( int *dest, int incr )
    319319{
    320     return InterlockedExchangeAdd(dest, incr);
     320    return InterlockedExchangeAdd((LONG *)dest, incr);
    321321}
    322322#endif
     
    347347static const char *default_dbgstr_an( const char *str, int n )
    348348{
    349     static const char hex[16] = "0123456789abcdef";
     349    static const char hex[16+1] = "0123456789abcdef";
    350350    char *dst, *res;
    351351    size_t size;
     
    358358        return res;
    359359    }
    360     if (n == -1) n = strlen(str);
     360    if (n == -1) n = (int)strlen(str);
    361361    if (n < 0) n = 0;
    362362    size = 10 + min( 300, n * 4 );
  • trunk/src/VBox/Devices/Graphics/shaderlib/libWineStub/include/wine/debug.h

    r53201 r62948  
    315315
    316316#define WINE_DECLARE_DEBUG_CHANNEL(ch) \
    317     static struct __wine_debug_channel __wine_dbch_##ch = { ~0, #ch }
     317    static struct __wine_debug_channel __wine_dbch_##ch = { /* was: ~0, VBox:*/ UINT8_MAX, #ch }
    318318#define WINE_DEFAULT_DEBUG_CHANNEL(ch) \
    319     static struct __wine_debug_channel __wine_dbch_##ch = { ~0, #ch }; \
     319    static struct __wine_debug_channel __wine_dbch_##ch = { /* was: ~0, VBox:*/ UINT8_MAX, #ch }; \
    320320    static struct __wine_debug_channel * const __wine_dbch___default = &__wine_dbch_##ch
    321321
  • trunk/src/VBox/Devices/Graphics/shaderlib/shader_sm1.c

    r54765 r62948  
    424424    while (opcode_table[i].handler_idx != WINED3DSIH_TABLE_SIZE)
    425425    {
    426         if ((code & WINED3DSI_OPCODE_MASK) == opcode_table[i].opcode
     426        if ((code & WINED3DSI_OPCODE_MASK) == (DWORD)opcode_table[i].opcode
    427427                && shader_version >= opcode_table[i].min_version
    428428                && (!opcode_table[i].max_version || shader_version <= opcode_table[i].max_version))
  • trunk/src/VBox/Devices/Graphics/shaderlib/wined3d_private.h

    r62934 r62948  
    4747#include "winuser.h"
    4848#else
    49 #include <iprt/win/windows.h>
     49# include <iprt/win/windows.h>
    5050#endif
    5151#include "wine/debug.h"
  • trunk/src/VBox/Devices/Makefile.kmk

    r62585 r62948  
    14531453        -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxSVGA3D.dylib
    14541454 $(call VBOX_SET_VER_INFO_DLL,VBoxSVGA3D,VirtualBox VMSVGA 3D)
     1455 #  -wd4100: unreferenced format parameter
     1456 #  -wd4204: nonstandard extension used : non-constant initializer
     1457 #  -wd4245: '=' : conversion from 'int' to 'DWORD', signed/unsigned mismatch
     1458 #  -wd4305: 'function' : truncation from 'double' to 'GLclampf'
     1459 VBoxSVGA3D_CFLAGS.win = -wd4100  -wd4204 -wd4245 -wd4305
    14551460
    14561461 #
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