VirtualBox

Changeset 69066 in vbox


Ignore:
Timestamp:
Oct 12, 2017 7:03:30 PM (7 years ago)
Author:
vboxsync
Message:

Additions/x11/vboxvideo: Consistently use RT_NOREF rather than NOREF or (void).
bugref:9017: Additions/x11: put vboxvideo into upstream X.Org

Location:
trunk/src/VBox/Additions/x11/vboxvideo
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/vboxvideo/pointer.c

    r69058 r69066  
    179179vbox_set_cursor_colors(ScrnInfoPtr pScrn, int bg, int fg)
    180180{
    181     NOREF(pScrn);
    182     NOREF(bg);
    183     NOREF(fg);
     181    RT_NOREF(pScrn);
     182    RT_NOREF(bg);
     183    RT_NOREF(fg);
    184184    /* ErrorF("vbox_set_cursor_colors NOT IMPLEMENTED\n"); */
    185185}
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.c

    r69065 r69066  
    397397static Bool
    398398vbox_crtc_lock (xf86CrtcPtr crtc)
    399 { (void) crtc; return FALSE; }
     399{ RT_NOREF(crtc); return FALSE; }
    400400
    401401
     
    409409vbox_crtc_mode_fixup (xf86CrtcPtr crtc, DisplayModePtr mode,
    410410                      DisplayModePtr adjusted_mode)
    411 { (void) crtc; (void) mode; (void) adjusted_mode; return TRUE; }
     411{ RT_NOREF(crtc, mode, adjusted_mode); return TRUE; }
    412412
    413413static void
    414414vbox_crtc_stub (xf86CrtcPtr crtc)
    415 { (void) crtc; }
     415{ RT_NOREF(crtc); }
    416416
    417417static void
     
    419419                    DisplayModePtr adjusted_mode, int x, int y)
    420420{
    421     (void) mode;
     421    RT_NOREF(mode);
    422422    VBOXPtr pVBox = VBOXGetRec(crtc->scrn);
    423423    unsigned cDisplay = (uintptr_t)crtc->driver_private;
     
    436436vbox_crtc_gamma_set (xf86CrtcPtr crtc, CARD16 *red,
    437437                     CARD16 *green, CARD16 *blue, int size)
    438 { (void) crtc; (void) red; (void) green; (void) blue; (void) size; }
     438{ RT_NOREF(crtc, red, green, blue, size); }
    439439
    440440static void *
    441441vbox_crtc_shadow_allocate (xf86CrtcPtr crtc, int width, int height)
    442 { (void) crtc; (void) width; (void) height; return NULL; }
     442{ RT_NOREF(crtc, width, height); return NULL; }
    443443
    444444static const xf86CrtcFuncsRec VBOXCrtcFuncs = {
     
    467467static void
    468468vbox_output_stub (xf86OutputPtr output)
    469 { (void) output; }
     469{ RT_NOREF(output); }
    470470
    471471static void
    472472vbox_output_dpms (xf86OutputPtr output, int mode)
    473473{
    474     (void)output; (void)mode;
     474    RT_NOREF(output, mode);
    475475}
    476476
     
    484484vbox_output_mode_fixup (xf86OutputPtr output, DisplayModePtr mode,
    485485                        DisplayModePtr adjusted_mode)
    486 { (void) output; (void) mode; (void) adjusted_mode; return TRUE; }
     486{ RT_NOREF(output, mode, adjusted_mode); return TRUE; }
    487487
    488488static void
    489489vbox_output_mode_set (xf86OutputPtr output, DisplayModePtr mode,
    490490                        DisplayModePtr adjusted_mode)
    491 { (void) output; (void) mode; (void) adjusted_mode; }
     491{ RT_NOREF(output, mode, adjusted_mode); }
    492492
    493493/* A virtual monitor is always connected. */
     
    675675
    676676static Bool VBOXEnterVTIndex(int scrnIndex, int flags)
    677 { (void) flags; return VBOXEnterVT(xf86Screens[scrnIndex]); }
     677{ RT_NOREF(flags); return VBOXEnterVT(xf86Screens[scrnIndex]); }
    678678
    679679static void VBOXLeaveVTIndex(int scrnIndex, int flags)
    680 { (void) flags; VBOXLeaveVT(xf86Screens[scrnIndex]); }
     680{ RT_NOREF(flags); VBOXLeaveVT(xf86Screens[scrnIndex]); }
    681681
    682682static Bool VBOXCloseScreenIndex(int scrnIndex, ScreenPtr pScreen)
    683 { (void) scrnIndex; return VBOXCloseScreen(pScreen); }
     683{ RT_NOREF(scrnIndex); return VBOXCloseScreen(pScreen); }
    684684
    685685static Bool VBOXSwitchModeIndex(int scrnIndex, DisplayModePtr pMode, int flags)
    686 { (void) flags; return VBOXSwitchMode(xf86Screens[scrnIndex], pMode); }
     686{ RT_NOREF(flags); return VBOXSwitchMode(xf86Screens[scrnIndex], pMode); }
    687687
    688688static void VBOXAdjustFrameIndex(int scrnIndex, int x, int y, int flags)
    689 { (void) flags; VBOXAdjustFrame(xf86Screens[scrnIndex], x, y); }
     689{ RT_NOREF(flags); VBOXAdjustFrame(xf86Screens[scrnIndex], x, y); }
    690690
    691691static void VBOXFreeScreenIndex(int scrnIndex, int flags)
    692 { (void) flags; VBOXFreeScreen(xf86Screens[scrnIndex]); }
     692{ RT_NOREF(flags); VBOXFreeScreen(xf86Screens[scrnIndex]); }
    693693# else
    694694# define SCRNINDEXAPI(pfn) pfn
     
    990990          LOCO *colors, VisualPtr pVisual)
    991991{
    992     (void)pScrn; (void) numColors; (void) indices; (void) colors;
    993     (void)pVisual;
     992    RT_NOREF(pScrn, numColors, indices, colors, pVisual);
    994993}
    995994
     
    13611360
    13621361static void VBOXAdjustFrame(ScrnInfoPtr pScrn, int x, int y)
    1363 { (void)pScrn; (void)x; (void)y; }
     1362{ RT_NOREF(pScrn, x, y); }
    13641363
    13651364static void VBOXFreeScreen(ScrnInfoPtr pScrn)
     
    14251424VBOXSaveScreen(ScreenPtr pScreen, int mode)
    14261425{
    1427     (void)pScreen; (void)mode;
     1426    RT_NOREF(pScreen, mode);
    14281427    return TRUE;
    14291428}
     
    14671466VBOXDisplayPowerManagementSet(ScrnInfoPtr pScrn, int mode, int flags)
    14681467{
    1469     (void)pScrn; (void)mode; (void) flags;
    1470 }
    1471 #endif
     1468    RT_NOREF(pScrn, mode, flags);
     1469}
     1470#endif
  • trunk/src/VBox/Additions/x11/vboxvideo/vbva.c

    r69064 r69066  
    101101static DECLCALLBACK(void *) hgsmiEnvAlloc(void *pvEnv, HGSMISIZE cb)
    102102{
    103     NOREF(pvEnv);
     103    RT_NOREF(pvEnv);
    104104    return calloc(1, cb);
    105105}
     
    107107static DECLCALLBACK(void) hgsmiEnvFree(void *pvEnv, void *pv)
    108108{
    109     NOREF(pvEnv);
     109    RT_NOREF(pvEnv);
    110110    free(pv);
    111111}
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