VirtualBox

儲存庫 vbox 的更動 63206


忽略:
時間撮記:
2016-8-9 下午02:13:22 (8 年 以前)
作者:
vboxsync
訊息:

GA/common/crOpenGL: warnings (gcc)

位置:
trunk/src/VBox/Additions/common/crOpenGL
檔案:
修改 6 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Additions/common/crOpenGL/egl.c

    r62521 r63206  
    149149{
    150150    Display *pDisplay;
    151     int rc, cError, cEvent, cMajor, cMinor;
     151    int cError, cEvent, cMajor, cMinor;
    152152
    153153    if (!testValidDisplay(hDisplay))
     
    201201DECLEXPORT(const char *) eglQueryString(EGLDisplay hDisplay, EGLint name)
    202202{
     203    RT_NOREF(hDisplay);
    203204    switch (name)
    204205    {
     
    240241}
    241242
    242 static int convertEGLAttribToGLX(EGLint EGLAttrib)
    243 {
    244     switch (EGLAttrib)
     243static int convertEGLAttribToGLX(EGLint a_EGLAttrib)
     244{
     245    switch (a_EGLAttrib)
    245246    {
    246247        case EGL_BUFFER_SIZE:
     
    310311    const EGLint *pAttrib, *pAttrib2;
    311312    EGLint cRenderableType = EGL_OPENGL_ES_BIT;
    312     int cConfigCaveat = GLX_DONT_CARE, cConformant = GLX_DONT_CARE;
     313    unsigned cConfigCaveat = GLX_DONT_CARE, cConformant = GLX_DONT_CARE;
    313314    GLXFBConfig *paFBConfigs;
    314315    int caFBConfigs;
     
    442443        return setEGLError(EGL_BAD_ACCESS);
    443444    *pcConfigs = caFBConfigs;
    444     for (i = 0; i < caConfigs && i < caFBConfigs; ++i)
     445    for (i = 0; (GLint)i < caConfigs && (GLint)i < caFBConfigs; ++i)
    445446        paConfigs[i] = (EGLConfig)paFBConfigs[i];
    446447    XFree(paFBConfigs);
     
    635636            paAttributes += 2;
    636637        }
    637     EGL_ASSERT(cIndex < RT_ELEMENTS(aAttributes) - 1);
     638    EGL_ASSERT((unsigned)cIndex < RT_ELEMENTS(aAttributes) - 1U);
    638639    aAttributes[cIndex + 1] = None;
    639640    hPbuffer = glXCreatePbuffer(pDisplay, (GLXFBConfig)config, aAttributes);
     
    923924    Display *pDisplay = (Display *)hDisplay;
    924925
    925     if (!VALID_PTR(hDisplay))
     926    if (!VALID_PTR(pDisplay))
    926927        return setEGLError(EGL_NOT_INITIALIZED);
    927928
  • trunk/src/VBox/Additions/common/crOpenGL/feedback/feedback_context.c

    r62521 r63206  
    11/* $Id$ */
    2 
    32/** @file
    43 * VBox feedback spu, context tracking.
     
    2019#include "cr_error.h"
    2120#include "feedbackspu.h"
     21
     22/** @todo r=bird: None of the code here is referenced externally, so I've
     23 *        just prototyped the function here at the top of the file to make
     24 *        the compiler happy. */
     25GLint FEEDBACKSPU_APIENTRY  feedbackspu_VBoxCreateContext( GLint con, const char *dpyName, GLint visual, GLint shareCtx );
     26GLint FEEDBACKSPU_APIENTRY  feedbackspu_CreateContext( const char *dpyName, GLint visual, GLint shareCtx );
     27void FEEDBACKSPU_APIENTRY   feedbackspu_MakeCurrent( GLint window, GLint nativeWindow, GLint ctx );
     28void FEEDBACKSPU_APIENTRY   feedbackspu_DestroyContext( GLint ctx );
     29
    2230
    2331/*@todo Multithreading case. (See feedback_spu.self.RenderMode)*/
     
    121129#endif
    122130}
     131
  • trunk/src/VBox/Additions/common/crOpenGL/feedback/feedbackspu_config.c

    r17269 r63206  
    2323static void set_default_viewport( void *foo, const char *response )
    2424{
     25   (void) foo;
    2526   sscanf( response, "%d", &(feedback_spu.default_viewport) );
    2627}
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_beginend.py

    r57544 r63206  
    1919void PACKSPU_APIENTRY packspu_Begin( GLenum mode )
    2020{
     21    CRPackBuffer *buf;
     22#if CR_ARB_vertex_buffer_object
     23    GET_CONTEXT(ctx);
     24#else
    2125    GET_THREAD(thread);
    22     CRPackBuffer *buf = &thread->BeginEndBuffer;
     26#endif
     27
     28    buf = &thread->BeginEndBuffer;
    2329
    2430    /* XXX comparing mode >= 0 here is not needed since mode is unsigned */
     
    2834    {
    2935        GLboolean serverArrays = GL_FALSE;
    30         GET_CONTEXT(ctx);
    3136        if (ctx->clientState->extensions.ARB_vertex_buffer_object)
    3237            serverArrays = crStateUseServerArrays();
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_get.py

    r51313 r63206  
    2121
    2222print """
    23 GLboolean crPackIsPixelStoreParm(GLenum pname)
     23static GLboolean crPackIsPixelStoreParm(GLenum pname)
    2424{
    2525    if (pname == GL_UNPACK_ALIGNMENT
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_glsl.c

    r62521 r63206  
    115115}
    116116
    117 GLint PACKSPU_APIENTRY packspu_GetAttribLocationUnchached( GLuint program, const char * name )
     117static GLint PACKSPU_APIENTRY packspu_GetAttribLocationUnchached( GLuint program, const char * name )
    118118{
    119119    GET_THREAD(thread);
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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