Changeset 69066 in vbox
- Timestamp:
- Oct 12, 2017 7:03:30 PM (7 years ago)
- Location:
- trunk/src/VBox/Additions/x11/vboxvideo
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxvideo/pointer.c
r69058 r69066 179 179 vbox_set_cursor_colors(ScrnInfoPtr pScrn, int bg, int fg) 180 180 { 181 NOREF(pScrn);182 NOREF(bg);183 NOREF(fg);181 RT_NOREF(pScrn); 182 RT_NOREF(bg); 183 RT_NOREF(fg); 184 184 /* ErrorF("vbox_set_cursor_colors NOT IMPLEMENTED\n"); */ 185 185 } -
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.c
r69065 r69066 397 397 static Bool 398 398 vbox_crtc_lock (xf86CrtcPtr crtc) 399 { (void) crtc; return FALSE; }399 { RT_NOREF(crtc); return FALSE; } 400 400 401 401 … … 409 409 vbox_crtc_mode_fixup (xf86CrtcPtr crtc, DisplayModePtr mode, 410 410 DisplayModePtr adjusted_mode) 411 { (void) crtc; (void) mode; (void) adjusted_mode; return TRUE; }411 { RT_NOREF(crtc, mode, adjusted_mode); return TRUE; } 412 412 413 413 static void 414 414 vbox_crtc_stub (xf86CrtcPtr crtc) 415 { (void) crtc; }415 { RT_NOREF(crtc); } 416 416 417 417 static void … … 419 419 DisplayModePtr adjusted_mode, int x, int y) 420 420 { 421 (void) mode;421 RT_NOREF(mode); 422 422 VBOXPtr pVBox = VBOXGetRec(crtc->scrn); 423 423 unsigned cDisplay = (uintptr_t)crtc->driver_private; … … 436 436 vbox_crtc_gamma_set (xf86CrtcPtr crtc, CARD16 *red, 437 437 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); } 439 439 440 440 static void * 441 441 vbox_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; } 443 443 444 444 static const xf86CrtcFuncsRec VBOXCrtcFuncs = { … … 467 467 static void 468 468 vbox_output_stub (xf86OutputPtr output) 469 { (void) output; }469 { RT_NOREF(output); } 470 470 471 471 static void 472 472 vbox_output_dpms (xf86OutputPtr output, int mode) 473 473 { 474 (void)output; (void)mode;474 RT_NOREF(output, mode); 475 475 } 476 476 … … 484 484 vbox_output_mode_fixup (xf86OutputPtr output, DisplayModePtr mode, 485 485 DisplayModePtr adjusted_mode) 486 { (void) output; (void) mode; (void) adjusted_mode; return TRUE; }486 { RT_NOREF(output, mode, adjusted_mode); return TRUE; } 487 487 488 488 static void 489 489 vbox_output_mode_set (xf86OutputPtr output, DisplayModePtr mode, 490 490 DisplayModePtr adjusted_mode) 491 { (void) output; (void) mode; (void) adjusted_mode; }491 { RT_NOREF(output, mode, adjusted_mode); } 492 492 493 493 /* A virtual monitor is always connected. */ … … 675 675 676 676 static Bool VBOXEnterVTIndex(int scrnIndex, int flags) 677 { (void) flags; return VBOXEnterVT(xf86Screens[scrnIndex]); }677 { RT_NOREF(flags); return VBOXEnterVT(xf86Screens[scrnIndex]); } 678 678 679 679 static void VBOXLeaveVTIndex(int scrnIndex, int flags) 680 { (void) flags; VBOXLeaveVT(xf86Screens[scrnIndex]); }680 { RT_NOREF(flags); VBOXLeaveVT(xf86Screens[scrnIndex]); } 681 681 682 682 static Bool VBOXCloseScreenIndex(int scrnIndex, ScreenPtr pScreen) 683 { (void) scrnIndex; return VBOXCloseScreen(pScreen); }683 { RT_NOREF(scrnIndex); return VBOXCloseScreen(pScreen); } 684 684 685 685 static 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); } 687 687 688 688 static 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); } 690 690 691 691 static void VBOXFreeScreenIndex(int scrnIndex, int flags) 692 { (void) flags; VBOXFreeScreen(xf86Screens[scrnIndex]); }692 { RT_NOREF(flags); VBOXFreeScreen(xf86Screens[scrnIndex]); } 693 693 # else 694 694 # define SCRNINDEXAPI(pfn) pfn … … 990 990 LOCO *colors, VisualPtr pVisual) 991 991 { 992 (void)pScrn; (void) numColors; (void) indices; (void) colors; 993 (void)pVisual; 992 RT_NOREF(pScrn, numColors, indices, colors, pVisual); 994 993 } 995 994 … … 1361 1360 1362 1361 static void VBOXAdjustFrame(ScrnInfoPtr pScrn, int x, int y) 1363 { (void)pScrn; (void)x; (void)y; }1362 { RT_NOREF(pScrn, x, y); } 1364 1363 1365 1364 static void VBOXFreeScreen(ScrnInfoPtr pScrn) … … 1425 1424 VBOXSaveScreen(ScreenPtr pScreen, int mode) 1426 1425 { 1427 (void)pScreen; (void)mode;1426 RT_NOREF(pScreen, mode); 1428 1427 return TRUE; 1429 1428 } … … 1467 1466 VBOXDisplayPowerManagementSet(ScrnInfoPtr pScrn, int mode, int flags) 1468 1467 { 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 101 101 static DECLCALLBACK(void *) hgsmiEnvAlloc(void *pvEnv, HGSMISIZE cb) 102 102 { 103 NOREF(pvEnv);103 RT_NOREF(pvEnv); 104 104 return calloc(1, cb); 105 105 } … … 107 107 static DECLCALLBACK(void) hgsmiEnvFree(void *pvEnv, void *pv) 108 108 { 109 NOREF(pvEnv);109 RT_NOREF(pvEnv); 110 110 free(pv); 111 111 }
Note:
See TracChangeset
for help on using the changeset viewer.