VirtualBox

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/HostServices/SharedOpenGL/render
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu.c

    r78190 r78263  
    243243}
    244244
    245 ContextInfo * renderspuDefaultSharedContextAcquire()
     245ContextInfo * renderspuDefaultSharedContextAcquire(void)
    246246{
    247247    ContextInfo * pCtx = render_spu.defaultSharedContext;
     
    651651    WindowInfo *window;
    652652
     653    RT_NOREF(dpyName);
     654
    653655    if (id <= 0)
    654656    {
     
    731733    window = (WindowInfo *) crHashtableSearch(render_spu.windowTable, win);
    732734    if (window) {
    733         if (w != window->BltInfo.width
    734                 || h != window->BltInfo.height)
     735        if (   (GLuint)w != window->BltInfo.width
     736            || (GLuint)h != window->BltInfo.height)
    735737        {
    736738            /* window is resized, compositor data is no longer valid
     
    10631065{
    10641066    PCR_BLITTER pBlitter = renderspuVBoxPresentBlitterGetAndEnter(window, i32MakeCurrentUserData, fRedraw);
     1067
     1068    RT_NOREF(pChangedEntry);
    10651069    if (!pBlitter)
    10661070        return;
     
    11111115{
    11121116    WindowInfo *window = (WindowInfo *) data1;
     1117    RT_NOREF(key, data2);
     1118
    11131119    renderspuVBoxCompositorSet(window, NULL);
    11141120}
    11151121
    1116 void renderspuVBoxCompositorClearAll()
     1122void renderspuVBoxCompositorClearAll(void)
    11171123{
    11181124    /* we need to clear window compositor, which is not that trivial though,
     
    15061512}
    15071513
    1508 bool renderspuCalloutAvailable()
     1514bool renderspuCalloutAvailable(void)
    15091515{
    15101516    return render_spu.pfnClientCallout != NULL;
     
    18541860{
    18551861    WindowInfo *pWindow = (WindowInfo *)data1;
     1862    RT_NOREF(key, data2);
    18561863
    18571864    renderspu_SystemReparentWindow(pWindow);
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu.h

    r78251 r78263  
    339339extern void renderspu_SystemWindowVisibleRegion(WindowInfo *window, GLint cRects, const GLint* pRects);
    340340extern GLboolean renderspu_SystemWindowNeedEmptyPresent(WindowInfo *window);
    341 extern int renderspu_SystemInit();
    342 extern int renderspu_SystemTerm();
     341extern int renderspu_SystemInit(void);
     342extern int renderspu_SystemTerm(void);
    343343extern void renderspu_SystemDefaultSharedContextChanged(ContextInfo *fromContext, ContextInfo *toContext);
    344344extern void renderspu_SystemShowWindow( WindowInfo *window, GLboolean showIt );
     
    351351extern int renderspuCreateFunctions( SPUNamedFunctionTable table[] );
    352352extern GLboolean renderspuVBoxCompositorSet( WindowInfo *window, const struct VBOXVR_SCR_COMPOSITOR * pCompositor);
    353 extern void renderspuVBoxCompositorClearAll();
     353extern void renderspuVBoxCompositorClearAll(void);
    354354extern int renderspuVBoxCompositorLock(WindowInfo *window, const struct VBOXVR_SCR_COMPOSITOR **ppCompositor);
    355355extern int renderspuVBoxCompositorUnlock(WindowInfo *window);
     
    408408extern uint32_t renderspuContextMarkDeletedAndRelease( ContextInfo *context );
    409409
    410 int renderspuDefaultCtxInit();
     410int renderspuDefaultCtxInit(void);
    411411void renderspuCleanupBase(bool fDeleteTables);
    412412
    413 ContextInfo * renderspuDefaultSharedContextAcquire();
     413ContextInfo * renderspuDefaultSharedContextAcquire(void);
    414414void renderspuDefaultSharedContextRelease(ContextInfo * pCtx);
    415415uint32_t renderspuContextRelease(ContextInfo *context);
    416416uint32_t renderspuContextRetain(ContextInfo *context);
    417417
    418 bool renderspuCalloutAvailable();
     418bool renderspuCalloutAvailable(void);
    419419bool renderspuCalloutClient(PFNVCRSERVER_CLIENT_CALLOUT_CB pfnCb, void *pvCb);
    420420
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_init.c

    r78251 r78263  
    100100#endif
    101101
    102 int renderspuDefaultCtxInit()
     102int renderspuDefaultCtxInit(void)
    103103{
    104104    GLint defaultWin, defaultCtx;
     
    367367    CRASSERT(window);
    368368
     369    RT_NOREF(key, data2);
     370
    369371    renderspuVBoxPresentBlitterCleanup( window );
    370372}
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_wgl.c

    r78190 r78263  
    9999}
    100100
    101 int renderspuIatPatcherPatchEntry(void *pvEntry, void *pvValue, void **ppvOldVal)
    102 {
    103     void **ppfn = (void**)pvEntry;
     101int renderspuIatPatcherPatchEntry(void *pvEntry, PFNRT pfnValue, PFNRT *ppfnOldVal)
     102{
     103    PFNRT *ppfn = (PFNRT *)pvEntry;
    104104    DWORD dwOldProtect = 0;
    105105
     
    110110    }
    111111
    112     if (ppvOldVal)
    113         *ppvOldVal = *ppfn;
    114     *ppfn = pvValue;
     112    if (ppfnOldVal)
     113        *ppfnOldVal = *ppfn;
     114    *ppfn = pfnValue;
    115115
    116116    if (!VirtualProtect(pvEntry, sizeof (pvEntry), dwOldProtect, &dwOldProtect))
     
    123123
    124124
    125 int renderspuIatPatcherPatchFunction(HMODULE hModule, LPCSTR pszLib, LPCSTR pszName, void* pfn)
     125int renderspuIatPatcherPatchFunction(HMODULE hModule, LPCSTR pszLib, LPCSTR pszName, PFNRT pfn)
    126126{
    127127    void* pAdr;
     
    144144
    145145/* patch */
    146 static HWND __stdcall renderspuAtiQuirk_GetForegroundWindow()
     146static HWND __stdcall renderspuAtiQuirk_GetForegroundWindow(void)
    147147{
    148148    crDebug("renderspuAtiQuirk_GetForegroundWindow");
     
    279279    }
    280280
    281     rc = renderspuIatPatcherPatchFunction(hAtiDll, "user32.dll", "GetForegroundWindow", (void*)renderspuAtiQuirk_GetForegroundWindow);
     281    rc = renderspuIatPatcherPatchFunction(hAtiDll, "user32.dll", "GetForegroundWindow", (PFNRT)renderspuAtiQuirk_GetForegroundWindow);
    282282    if (RT_FAILURE(rc))
    283283    {
     
    311311
    312312
    313 static int renderspuAtiQuirk_Apply()
     313static int renderspuAtiQuirk_Apply(void)
    314314{
    315315    char aBuf[4096];
     
    337337}
    338338
    339 static GLboolean renderspuAtiQuirk_Needed()
    340 {
    341     const char * pszString = render_spu.ws.glGetString(GL_VENDOR);
     339static GLboolean renderspuAtiQuirk_Needed(void)
     340{
     341    const char * pszString = (const char *)render_spu.ws.glGetString(GL_VENDOR);
    342342    if (pszString && strstr(pszString, "ATI"))
    343343        return GL_TRUE;
    344     pszString = render_spu.ws.glGetString(GL_RENDERER);
     344    pszString = (const char *)render_spu.ws.glGetString(GL_RENDERER);
    345345    if (pszString && strstr(pszString, "ATI"))
    346346        return GL_TRUE;
     
    348348}
    349349
    350 static void renderspuAtiQuirk_ChkApply()
     350static void renderspuAtiQuirk_ChkApply(void)
    351351{
    352352    static GLboolean fChecked = GL_FALSE;
     
    506506    int attribList[100];
    507507    float fattribList[] = { 0.0, 0.0 };
    508     int numFormats;
     508    unsigned numFormats;
    509509    int i = 0;
    510510    BOOL vis;
     
    14001400        }
    14011401
     1402#if 0
    14021403        if (0/*render_spu.render_to_app_window && nativeWindow*/)
    14031404        {
     
    14391440        }
    14401441        else
     1442#endif
    14411443        {
    14421444            if (!context->hRC) {
     
    15831585GLboolean renderspu_SystemWindowNeedEmptyPresent(WindowInfo *window)
    15841586{
     1587    RT_NOREF(window);
    15851588    return GL_FALSE;
    15861589}
     
    16421645{
    16431646    int return_value;
     1647
     1648    RT_NOREF(flags);
    16441649
    16451650    /* peek at the windows message queue */
     
    17211726}
    17221727
    1723 int renderspu_SystemInit()
     1728int renderspu_SystemInit(void)
    17241729{
    17251730    return VINF_SUCCESS;
    17261731}
    17271732
    1728 int renderspu_SystemTerm()
     1733int renderspu_SystemTerm(void)
    17291734{
    17301735    return VINF_SUCCESS;
     
    17331738void renderspu_SystemDefaultSharedContextChanged(ContextInfo *fromContext, ContextInfo *toContext)
    17341739{
    1735 
     1740    RT_NOREF(fromContext, toContext);
    17361741}
    17371742
    17381743uint32_t renderspu_SystemPostprocessFunctions(SPUNamedFunctionTable *aFunctions, uint32_t cFunctions, uint32_t cTable)
    17391744{
     1745    RT_NOREF(aFunctions, cTable);
    17401746    return cFunctions;
    17411747}
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