VirtualBox

儲存庫 vbox 的更動 63221


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

GA/X11: warnings

位置:
trunk/src/VBox/Additions/x11
檔案:
修改 5 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Additions/x11/vboxmouse/vboxmouse.c

    r62530 r63221  
    103103{
    104104    CARD8 map[2] = { 0, 1 };
     105#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
    105106    Atom axis_labels[2] = { 0, 0 };
    106107    Atom button_labels[2] = { 0, 0 };
     108#endif
    107109    if (!InitPointerDeviceStruct((DevicePtr)device, map, 2,
    108110#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
  • trunk/src/VBox/Additions/x11/vboxvideo/edid.c

    r62530 r63221  
    143143Bool VBOXEDIDSet(xf86OutputPtr output, DisplayModePtr pmode)
    144144{
    145     int i, j;
    146145    unsigned char *pch, *pchEDID;
    147146    xf86MonPtr pEDIDMon;
  • trunk/src/VBox/Additions/x11/vboxvideo/getmode.c

    r62530 r63221  
    125125void vboxAddModes(ScrnInfoPtr pScrn)
    126126{
    127     unsigned cx = 0, cy = 0, cIndex = 0;
     127    unsigned cx = 0;
     128    unsigned cy = 0;
    128129    unsigned i;
    129130    DisplayModePtr pMode;
     
    237238static void acpiEventHandler(int fd, void *pvData)
    238239{
    239     ScreenPtr pScreen = (ScreenPtr)pvData;
    240     VBOXPtr pVBox = VBOXGetRec(xf86Screens[pScreen->myNum]);
    241240    struct input_event event;
    242241    ssize_t rc;
     242    RT_NOREF(pvData);
    243243
    244244    do
  • trunk/src/VBox/Additions/x11/vboxvideo/pointer.c

    r62530 r63221  
    128128{
    129129    int rc;
     130    RT_NOREF(pScrn);
    130131
    131132    rc = VBoxHGSMIUpdatePointerShape(&pVBox->guestCtx, 0, 0, 0, 0, 0, NULL, 0);
     
    137138{
    138139    int rc;
     140    RT_NOREF(pScrn);
    139141
    140142    if (!pVBox->fUseHardwareCursor)
     
    152154    struct vboxCursorImage *pImage;
    153155    pImage = (struct vboxCursorImage *)pvImage;
     156    RT_NOREF(pScrn);
    154157
    155158#ifdef DEBUG_POINTER
     
    211214    ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
    212215    VBOXPtr pVBox = pScrn->driverPrivate;
     216    RT_NOREF(pCurs);
    213217    return pVBox->fUseHardwareCursor;
    214218}
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.c

    r62530 r63221  
    116116static void VBOXLeaveVT(ScrnInfoPtr pScrn);
    117117static Bool VBOXCloseScreen(ScreenPtr pScreen);
     118#ifndef VBOXVIDEO_13
    118119static Bool VBOXSaveScreen(ScreenPtr pScreen, int mode);
     120#endif
    119121static Bool VBOXSwitchMode(ScrnInfoPtr pScrn, DisplayModePtr pMode);
    120122static void VBOXAdjustFrame(ScrnInfoPtr pScrn, int x, int y);
    121123static void VBOXFreeScreen(ScrnInfoPtr pScrn);
    122 static void VBOXDisplayPowerManagementSet(ScrnInfoPtr pScrn, int mode,
    123                                           int flags);
     124#ifndef VBOXVIDEO_13
     125static void VBOXDisplayPowerManagementSet(ScrnInfoPtr pScrn, int mode, int flags);
     126#endif
    124127
    125128/* locally used functions */
     
    290293}
    291294
    292 /** Set a video mode to the hardware, RandR 1.1 version.  Since we no longer do
    293  * virtual frame buffers, adjust the screen pixmap dimensions to match.  The
    294  * "override" parameters are for when we received a mode hint while switched to
    295  * a virtual terminal.  In this case VBoxClient will have told us about the
    296  * mode, but not yet been able to do a mode switch using RandR.  We solve this
    297  * by setting the requested mode to the host but keeping the virtual frame-
     295#ifndef VBOXVIDEO_13
     296/** Set a video mode to the hardware, RandR 1.1 version.
     297 *
     298 * Since we no longer do virtual frame buffers, adjust the screen pixmap
     299 * dimensions to match.  The "override" parameters are for when we received a
     300 * mode hint while switched to a virtual terminal.  In this case VBoxClient will
     301 * have told us about the mode, but not yet been able to do a mode switch using
     302 * RandR.  We solve this by setting the requested mode to the host but keeping
     303 * the virtual frame-
    298304 * buffer matching what the X server expects. */
    299305static void setModeRandR11(ScrnInfoPtr pScrn, DisplayModePtr pMode, bool fScreenInitTime, bool fEnterVTTime,
     
    332338    pScrn->currentMode = pMode;
    333339}
     340#endif
    334341
    335342#ifdef VBOXVIDEO_13
     
    552559vbox_output_get_modes (xf86OutputPtr output)
    553560{
    554     unsigned cIndex = 0;
    555561    DisplayModePtr pModes = NULL;
    556562    DisplayModePtr pPreferred = NULL;
     
    636642{
    637643    static Bool Initialised = FALSE;
     644    RT_NOREF(Options, ErrorMinor);
    638645
    639646    if (!Initialised)
     
    666673VBOXAvailableOptions(int chipid, int busid)
    667674{
     675    RT_NOREF(chipid, busid);
    668676    return (VBOXOptions);
    669677}
     
    672680VBOXIdentify(int flags)
    673681{
     682    RT_NOREF(flags);
    674683    xf86PrintChipsets(VBOX_NAME, "guest driver for VirtualBox", VBOXChipsets);
    675684}
     
    677686#ifndef XF86_SCRN_INTERFACE
    678687# define SCRNINDEXAPI(pfn) pfn ## Index
    679 static Bool VBOXScreenInitIndex(int scrnIndex, ScreenPtr pScreen, int argc,
    680                                 char **argv)
    681 { return VBOXScreenInit(pScreen, argc, argv); }
     688static Bool VBOXScreenInitIndex(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
     689{
     690    RT_NOREF(scrnIndex);
     691    return VBOXScreenInit(pScreen, argc, argv);
     692}
    682693
    683694static Bool VBOXEnterVTIndex(int scrnIndex, int flags)
     
    9961007{
    9971008    VBOXPtr pVBox = VBOXGetRec(pScrn);
    998     size_t cData;
    999     int32_t *paData;
    1000     int rc;
    10011009
    10021010    if (!pVBox->fHaveHGSMIModeHints)
     
    10301038static void setSizesAndCursorIntegration(ScrnInfoPtr pScrn, bool fScreenInitTime)
    10311039{
    1032     VBOXPtr pVBox = VBOXGetRec(pScrn);
    1033 
    10341040    TRACE_LOG("fScreenInitTime=%d\n", (int)fScreenInitTime);
    10351041#ifdef VBOXVIDEO_13
     
    10541060{
    10551061    ScrnInfoPtr pScrn = (ScrnInfoPtr)pData;
    1056     VBOXPtr pVBox = VBOXGetRec(pScrn);
    10571062    bool fNeedUpdate = false;
    10581063
     
    10841089    VBOXPtr pVBox = VBOXGetRec(pScrn);
    10851090    VisualPtr visual;
     1091    RT_NOREF(argc, argv);
    10861092
    10871093    TRACE_ENTRY();
     
    12081214        return FALSE;
    12091215    }
    1210 #else
     1216#else  /* !VBOXVIDEO_13 */
    12111217    /* set first video mode */
    12121218    setModeRandR11(pScrn, pScrn->currentMode, true, false, 0, 0);
    1213 #endif
     1219#endif /* !VBOXVIDEO_13 */
    12141220
    12151221    /* Say that we support graphics. */
     
    12871293static void VBOXLeaveVT(ScrnInfoPtr pScrn)
    12881294{
    1289     VBOXPtr pVBox = VBOXGetRec(pScrn);
    12901295#ifdef VBOXVIDEO_13
     1296    VBOXPtr pVBox = VBOXGetRec(pScrn);
    12911297    unsigned i;
    12921298#else
     
    14221428}
    14231429
     1430#ifndef VBOXVIDEO_13
    14241431static Bool
    14251432VBOXSaveScreen(ScreenPtr pScreen, int mode)
     
    14281435    return TRUE;
    14291436}
     1437#endif
    14301438
    14311439void
     
    14621470}
    14631471
     1472#ifndef VBOXVIDEO_13
    14641473static void
    1465 VBOXDisplayPowerManagementSet(ScrnInfoPtr pScrn, int mode,
    1466                 int flags)
     1474VBOXDisplayPowerManagementSet(ScrnInfoPtr pScrn, int mode, int flags)
    14671475{
    14681476    (void)pScrn; (void)mode; (void) flags;
    14691477}
     1478#endif
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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