VirtualBox

Changeset 63205 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Aug 9, 2016 2:03:04 PM (8 years ago)
Author:
vboxsync
Message:

GA/common/crOpenGL: warnings (gcc)

Location:
trunk/src/VBox/Additions/common/crOpenGL
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/crOpenGL/array/arrayspu.c

    r40431 r63205  
    882882
    883883static void ARRAYSPU_APIENTRY
    884 arrayspu_VBoxAttachThread()
     884arrayspu_VBoxAttachThread(void)
    885885{
    886886    crStateVBoxAttachThread();
     
    889889
    890890static void ARRAYSPU_APIENTRY
    891 arrayspu_VBoxDetachThread()
     891arrayspu_VBoxDetachThread(void)
    892892{
    893893    crStateVBoxDetachThread();
  • trunk/src/VBox/Additions/common/crOpenGL/entrypoints.py

    r18539 r63205  
    3131    print '#include "dri_glx.h"'
    3232    print ''
     33    print '#ifdef __GNUC__';
     34    print '# if (__GNUC__ << 16) + __GNUC_MINOR__ >= 0x40002';
     35    print '#  pragma GCC diagnostic ignored "-Wunused-parameter"';
     36    print '# endif';
     37    print '#endif';
     38
    3339
    3440    # Get sorted list of dispatched functions.
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu.h

    r62848 r63205  
    169169#if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST)
    170170                struct VBOXUHGSMI *pHgsmi
     171#else
     172                void
    171173#endif
    172174        );
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_client.c

    r51316 r63205  
    181181
    182182
    183 GLboolean packspuZvaCreate(ContextInfo *pCtx, const GLfloat *pValue, GLuint cValues)
     183static GLboolean packspuZvaCreate(ContextInfo *pCtx, const GLfloat *pValue, GLuint cValues)
    184184{
    185185    ZvaBufferInfo *pInfo = &pCtx->zvaBufferInfo;
     
    244244} CR_ZVA_RESTORE_CTX;
    245245
    246 void packspuZvaEnable(ContextInfo *pCtx, const GLfloat *pValue, GLuint cValues, CR_ZVA_RESTORE_CTX *pRestoreCtx)
     246static void packspuZvaEnable(ContextInfo *pCtx, const GLfloat *pValue, GLuint cValues, CR_ZVA_RESTORE_CTX *pRestoreCtx)
    247247{
    248248    CRContext *g = pCtx->clientState;
     
    281281}
    282282
    283 void packspuZvaDisable(CR_ZVA_RESTORE_CTX *pRestoreCtx)
     283static void packspuZvaDisable(CR_ZVA_RESTORE_CTX *pRestoreCtx)
    284284{
    285285    if (pRestoreCtx->cp.buffer)
     
    347347
    348348#if CR_ARB_vertex_buffer_object
    349     GET_CONTEXT(ctx);
    350     /*crDebug("packspu_ArrayElement index:%i", index);*/
    351     if (ctx->clientState->extensions.ARB_vertex_buffer_object)
    352     {
    353         serverArrays = crStateUseServerArrays();
    354         if (ctx->fCheckZerroVertAttr)
    355             cZvaValues = crStateNeedDummyZeroVertexArray(thread->currentContext->clientState, &thread->packer->current, aAttrib);
     349    {
     350        GET_CONTEXT(ctx);
     351        /*crDebug("packspu_ArrayElement index:%i", index);*/
     352        if (ctx->clientState->extensions.ARB_vertex_buffer_object)
     353        {
     354            serverArrays = crStateUseServerArrays();
     355            if (ctx->fCheckZerroVertAttr)
     356                cZvaValues = crStateNeedDummyZeroVertexArray(thread->currentContext->clientState, &thread->packer->current, aAttrib);
     357        }
    356358    }
    357359#endif
     
    428430
    429431#if CR_ARB_vertex_buffer_object
    430     GET_CONTEXT(ctx);
    431432    GLboolean lockedArrays = GL_FALSE;
    432     CRBufferObject *elementsBuffer = crStateGetCurrent()->bufferobject.elementsBuffer;
    433     /*crDebug("DrawElements count=%d, indices=%p", count, indices);*/
    434     if (ctx->clientState->extensions.ARB_vertex_buffer_object)
    435     {
    436         serverArrays = crStateUseServerArrays();
    437         if (ctx->fCheckZerroVertAttr)
    438             cZvaValues = crStateNeedDummyZeroVertexArray(thread->currentContext->clientState, &thread->packer->current, aAttrib);
     433    CRBufferObject *elementsBuffer;
     434    {
     435        GET_CONTEXT(ctx);
     436        elementsBuffer = crStateGetCurrent()->bufferobject.elementsBuffer;
     437        /*crDebug("DrawElements count=%d, indices=%p", count, indices);*/
     438        if (ctx->clientState->extensions.ARB_vertex_buffer_object)
     439        {
     440            serverArrays = crStateUseServerArrays();
     441            if (ctx->fCheckZerroVertAttr)
     442                cZvaValues = crStateNeedDummyZeroVertexArray(thread->currentContext->clientState, &thread->packer->current, aAttrib);
     443        }
    439444    }
    440445
     
    576581
    577582#if CR_ARB_vertex_buffer_object
    578     GET_CONTEXT(ctx);
    579     /*crDebug("DrawRangeElements count=%d", count);*/
    580     if (ctx->clientState->extensions.ARB_vertex_buffer_object)
    581     {
    582          serverArrays = crStateUseServerArrays();
    583          if (ctx->fCheckZerroVertAttr)
    584              cZvaValues = crStateNeedDummyZeroVertexArray(thread->currentContext->clientState, &thread->packer->current, aAttrib);
     583    {
     584        GET_CONTEXT(ctx);
     585        /*crDebug("DrawRangeElements count=%d", count);*/
     586        if (ctx->clientState->extensions.ARB_vertex_buffer_object)
     587        {
     588             serverArrays = crStateUseServerArrays();
     589             if (ctx->fCheckZerroVertAttr)
     590                 cZvaValues = crStateNeedDummyZeroVertexArray(thread->currentContext->clientState, &thread->packer->current, aAttrib);
     591        }
    585592    }
    586593#endif
     
    650657
    651658#if CR_ARB_vertex_buffer_object
    652     GET_CONTEXT(ctx);
    653659    GLboolean lockedArrays = GL_FALSE;
    654     /*crDebug("DrawArrays count=%d", count);*/
    655     if (ctx->clientState->extensions.ARB_vertex_buffer_object)
    656     {
    657          serverArrays = crStateUseServerArrays();
    658          if (ctx->fCheckZerroVertAttr)
    659              cZvaValues = crStateNeedDummyZeroVertexArray(thread->currentContext->clientState, &thread->packer->current, aAttrib);
     660    {
     661        GET_CONTEXT(ctx);
     662        /*crDebug("DrawArrays count=%d", count);*/
     663        if (ctx->clientState->extensions.ARB_vertex_buffer_object)
     664        {
     665             serverArrays = crStateUseServerArrays();
     666             if (ctx->fCheckZerroVertAttr)
     667                 cZvaValues = crStateNeedDummyZeroVertexArray(thread->currentContext->clientState, &thread->packer->current, aAttrib);
     668        }
    660669    }
    661670
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_config.c

    r33595 r63205  
    2525static void set_emit( void *foo, const char *response )
    2626{
     27    RT_NOREF(foo);
    2728    sscanf( response, "%d", &(pack_spu.emit_GATHER_POST_SWAPBUFFERS) );
    2829}
     
    3031static void set_swapbuffer_sync( void *foo, const char *response )
    3132{
     33    RT_NOREF(foo);
    3234    sscanf( response, "%d", &(pack_spu.swapbuffer_sync) );
    3335}
     
    5052void packspuSetVBoxConfiguration( const SPU *child_spu )
    5153{
     54    RT_NOREF(child_spu);
    5255    __setDefaults();
    5356    pack_spu.emit_GATHER_POST_SWAPBUFFERS = 0;
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_context.c

    r55623 r63205  
    2121#if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST)
    2222                struct VBOXUHGSMI *pHgsmi
     23#else
     24                void
    2325#endif
    2426)
     
    116118    }
    117119    crError("packspuNewThread failed");
     120#else
     121    RT_NOREF(pHgsmi);
    118122#endif
    119123    return 0;
     
    130134    packspuFlush((void *) thread);
    131135#else
     136    RT_NOREF(con);
    132137    crError("VBoxConFlush not implemented!");
    133138#endif
     
    180185#endif
    181186    crUnlockMutex(&_PackMutex);
     187#else
     188    RT_NOREF(con);
    182189#endif
    183190}
     
    189196    CRPackContext * curPacker = crPackGetContext();
    190197    ThreadInfo *curThread = thread;
    191     int writeback = 1;
    192     GLint serverCtx = (GLint) -1;
    193198
    194199    CRASSERT(!curThread == !curPacker);
     
    247252    CRPackContext * curPacker = crPackGetContext();
    248253    ThreadInfo *curThread = thread;
    249     int writeback = 1;
    250     GLint serverCtx = (GLint) -1;
    251254
    252255    CRASSERT(!curThread == !curPacker);
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_misc.c

    r62848 r63205  
    552552    GLenum return_val = (GLenum) 0;
    553553    CRContext *pCurState = crStateGetCurrent();
     554    NOREF(pCurState); /* it's unused, but I don't know about side effects.. */
    554555
    555556    if (!CRPACKSPU_IS_WDDM_CRHGSMI() && !(pack_spu.thread[pack_spu.idxThreadInUse].netServer.conn->actual_network))
     
    584585    GET_THREAD(thread);
    585586    CRASSERT(!thread);
     587    RT_NOREF(pHgsmi);
    586588    crLockMutex(&_PackMutex);
    587589    {
     
    842844#endif /*CHROMIUM_THREADSAFE*/
    843845
    844 void PACKSPU_APIENTRY packspu_VBoxPresentComposition(GLint win, const struct VBOXVR_SCR_COMPOSITOR * pCompositor, const struct VBOXVR_SCR_COMPOSITOR_ENTRY *pChangedEntry)
    845 {
     846void PACKSPU_APIENTRY packspu_VBoxPresentComposition(GLint win, const struct VBOXVR_SCR_COMPOSITOR * pCompositor,
     847                                                     const struct VBOXVR_SCR_COMPOSITOR_ENTRY *pChangedEntry)
     848{
     849    RT_NOREF(win, pCompositor, pChangedEntry);
    846850}
    847851
    848852void PACKSPU_APIENTRY packspu_StringMarkerGREMEDY(GLsizei len, const GLvoid *string)
    849853{
    850 }
    851 
     854    RT_NOREF(len, string);
     855}
     856
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_net.c

    r52451 r63205  
    5454packspuReceiveData( CRConnection *conn, CRMessage *msg, unsigned int len )
    5555{
     56    RT_NOREF(conn);
    5657    if (msg->header.type == CR_MESSAGE_REDIR_PTR)
    5758        msg = (CRMessage*) msg->redirptr.pMessage;
     
    8081    int num_opcodes;
    8182    CRMessageOpcodes *hdr;
     83    RT_NOREF(senderID);
    8284
    8385    CRASSERT( buf );
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_pixel.c

    r42499 r63205  
    198198    }
    199199
    200 static void packspu_ApplyUnpackState()
     200static void packspu_ApplyUnpackState(void)
    201201{
    202202    GET_THREAD(thread);
     
    214214}
    215215
    216 static void packspu_RestoreUnpackState()
     216static void packspu_RestoreUnpackState(void)
    217217{
    218218    GET_THREAD(thread);
     
    230230}
    231231
    232 static void packspu_ApplyPackState()
     232static void packspu_ApplyPackState(void)
    233233{
    234234    GET_THREAD(thread);
     
    246246}
    247247
    248 static void packspu_RestorePackState()
     248static void packspu_RestorePackState(void)
    249249{
    250250    GET_THREAD(thread);
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