VirtualBox

Changeset 78263 in vbox for trunk/src/VBox/GuestHost/OpenGL


Ignore:
Timestamp:
Apr 23, 2019 6:41:06 PM (6 years ago)
Author:
vboxsync
Message:

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

Location:
trunk/src/VBox/GuestHost/OpenGL
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/include/cr_spu.h

    r78190 r78263  
    114114typedef int (WGL_APIENTRY *wglDescribePixelFormatFunc_t)(HDC, int, UINT, CONST PIXELFORMATDESCRIPTOR *);
    115115typedef int (WGL_APIENTRY *wglSetPixelFormatFunc_t)(HDC, int, CONST PIXELFORMATDESCRIPTOR *);
    116 typedef HGLRC (WGL_APIENTRY *wglGetCurrentContextFunc_t)();
    117 typedef PROC (WGL_APIENTRY *wglGetProcAddressFunc_t)();
     116typedef HGLRC (WGL_APIENTRY *wglGetCurrentContextFunc_t)(void);
     117typedef PROC (WGL_APIENTRY *wglGetProcAddressFunc_t)(LPCSTR Arg1);
    118118typedef BOOL (WGL_APIENTRY *wglChoosePixelFormatEXTFunc_t)(HDC, const int *, const FLOAT *, UINT, int *, UINT *);
    119119typedef BOOL (WGL_APIENTRY *wglGetPixelFormatAttribivEXTFunc_t)(HDC, int, int, UINT, int *, int *);
    120120typedef BOOL (WGL_APIENTRY *wglGetPixelFormatAttribfvEXTFunc_t)(HDC, int, int, UINT, int *, float *);
    121121typedef const GLubyte *(WGL_APIENTRY *glGetStringFunc_t)( GLenum );
    122 typedef const GLubyte *(WGL_APIENTRY *wglGetExtensionsStringEXTFunc_t)();
     122typedef const GLubyte *(WGL_APIENTRY *wglGetExtensionsStringEXTFunc_t)(void);
    123123typedef const GLubyte *(WGL_APIENTRY *wglGetExtensionsStringARBFunc_t)(HDC);
    124124/*@}*/
  • trunk/src/VBox/GuestHost/OpenGL/include/cr_unpack.h

    r78198 r78263  
    9494        return; \
    9595    } \
    96     size_t int_cbAccessVerified = (a_cbAccess)
     96    size_t int_cbAccessVerified = (a_cbAccess); RT_NOREF(int_cbAccessVerified)
    9797
    9898#define CHECK_BUFFER_SIZE_STATIC_LAST(a_pState, a_offAccessLast, a_Type) CHECK_BUFFER_SIZE_STATIC(a_pState, (a_offAccessLast) + sizeof( a_Type ))
  • trunk/src/VBox/GuestHost/OpenGL/spu_loader/choosevisual.c

    r69392 r78263  
    2121{
    2222        /* placeholder */
     23        RT_NOREF(ws, visBits);
    2324        return 0;
    2425}
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_client.c

    r78116 r78263  
    10851085    unsigned char *base = (unsigned char *) p;
    10861086
     1087#ifndef IN_GUEST
     1088    RT_NOREF(fRealPtr);
     1089#endif
     1090
    10871091    if (g->current.inBeginEnd)
    10881092    {
     
    15791583}
    15801584
    1581 void STATE_APIENTRY crStateUnlockArraysEXT()
     1585void STATE_APIENTRY crStateUnlockArraysEXT(void)
    15821586{
    15831587    CRContext *g = GetCurrentContext();
     
    17281732            else
    17291733            {
    1730                 zvMax = ~0;
     1734                zvMax = ~UINT32_C(0);
    17311735                break;
    17321736            }
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_glsl.c

    r78190 r78263  
    12811281    return result;
    12821282#else
     1283    RT_NOREF(program, name);
    12831284    crWarning("crStateGetUniformLocation called on host side!!");
    12841285    return -1;
     
    13161317    return result;
    13171318#else
     1319    RT_NOREF(program, name);
    13181320    crWarning("crStateGetAttribLocation called on host side!!");
    13191321    return -1;
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_init.c

    r69392 r78263  
    787787}
    788788
    789 void crStateCleanupCurrent()
     789void crStateCleanupCurrent(void)
    790790{
    791791    crStateSetCurrentEx( NULL, GL_TRUE );
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_lists.c

    r69392 r78263  
    5959#define CRSTATE_SET_ENABLED(state, cap) CRSTATE_SET_CAP(state, diff_api.IsEnabled(cap), "%u")
    6060
    61 #define CRSTATE_SET_ENUM(state, cap) {GLenum _e=g->state; diff_api.GetIntegerv(cap, &_e); CRSTATE_SET_CAP(state, _e, "%#x");}
     61#define CRSTATE_SET_ENUM(state, cap) {GLenum _e=g->state; diff_api.GetIntegerv(cap, (GLint *)&_e); CRSTATE_SET_CAP(state, _e, "%#x");}
    6262#define CRSTATE_SET_FLOAT(state, cap) {GLfloat _f=g->state; diff_api.GetFloatv(cap, &_f); CRSTATE_SET_CAP(state, _f, "%f");}
    6363#define CRSTATE_SET_INT(state, cap) {GLint _i=g->state; diff_api.GetIntegerv(cap, &_i); CRSTATE_SET_CAP(state, _i, "%i");}
     
    224224        {
    225225            GLuint buf = 0;
    226             diff_api.GetIntegerv(GL_DRAW_BUFFER, &buf);
     226            diff_api.GetIntegerv(GL_DRAW_BUFFER, (GLint *)&buf);
    227227
    228228            if (buf == GL_COLOR_ATTACHMENT0_EXT && (bbFbo || fbFbo))
    229229            {
    230230                GLuint binding = 0;
    231                 diff_api.GetIntegerv(GL_DRAW_FRAMEBUFFER_BINDING, &binding);
     231                diff_api.GetIntegerv(GL_DRAW_FRAMEBUFFER_BINDING, (GLint *)&binding);
    232232                if (!binding)
    233233                {
     
    257257        {
    258258            GLuint buf = 0;
    259             diff_api.GetIntegerv(GL_READ_BUFFER, &buf);
     259            diff_api.GetIntegerv(GL_READ_BUFFER, (GLint *)&buf);
    260260
    261261            if (buf == GL_COLOR_ATTACHMENT0_EXT && (bbFbo || fbFbo))
    262262            {
    263263                GLuint binding = 0;
    264                 diff_api.GetIntegerv(GL_READ_FRAMEBUFFER_BINDING, &binding);
     264                diff_api.GetIntegerv(GL_READ_FRAMEBUFFER_BINDING, (GLint *)&binding);
    265265                if (!binding)
    266266                {
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_snapshot.c

    r78117 r78263  
    11061106    int32_t rc;
    11071107
     1108    RT_NOREF(data1);
     1109
    11081110    rc = SSMR3PutMem(pSSM, &key, sizeof(key));
    11091111    CRASSERT(rc == VINF_SUCCESS);
     
    18091811#include "state_bits_globalop.h"
    18101812#undef CRSTATE_BITS_OP
     1813#else
     1814    RT_NOREF(pSSM);
    18111815#endif
    18121816    return VINF_SUCCESS;
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_transform.c

    r69392 r78263  
    343343}
    344344
    345 void STATE_APIENTRY crStateLoadIdentity()
     345void STATE_APIENTRY crStateLoadIdentity(void)
    346346{
    347347    CRContext *g = GetCurrentContext();
     
    366366}
    367367
    368 void STATE_APIENTRY crStatePopMatrix()
     368void STATE_APIENTRY crStatePopMatrix(void)
    369369{
    370370    CRContext *g = GetCurrentContext();
     
    398398}
    399399
    400 void STATE_APIENTRY crStatePushMatrix()
     400void STATE_APIENTRY crStatePushMatrix(void)
    401401{
    402402    CRContext *g = GetCurrentContext();
  • trunk/src/VBox/GuestHost/OpenGL/util/vboxhgcm.c

    r78190 r78263  
    13541354
    13551355#else  /* !IN_GUEST */
     1356    RT_NOREF(conn);
    13561357    crError("crVBoxHGCMDoConnect called on host side!");
    13571358    CRASSERT(FALSE);
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