VirtualBox

Changeset 62156 in vbox for trunk/src


Ignore:
Timestamp:
Jul 11, 2016 11:56:22 AM (9 years ago)
Author:
vboxsync
Message:

use RT_GCC_NO_DEPRECATED_BEGIN / RT_GCC_NO_DEPRECATED_END

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIHostComboEditor.cpp

    r60362 r62156  
    686686
    687687# elif defined(VBOX_WS_X11)
    688 //#  pragma GCC diagnostic push
    689 //#  pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    690688
    691689    /* Make sure it's generic XCB event: */
     
    705703            /* Parse key-event: */
    706704            xcb_key_press_event_t *pKeyEvent = static_cast<xcb_key_press_event_t*>(pMessage);
     705            RT_GCC_NO_DEPRECATED_BEGIN
    707706            const KeySym ks = ::XKeycodeToKeysym(QX11Info::display(), pKeyEvent->detail, 0);
     707            RT_GCC_NO_DEPRECATED_END
    708708            const int iKeySym = static_cast<const int>(ks);
    709709
     
    715715    }
    716716
    717 //#  pragma GCC diagnostic pop
    718717# else
    719718
     
    831830
    832831# elif defined(VBOX_WS_X11)
    833 #  if RT_GNUC_PREREQ(4, 6)
    834 #   pragma GCC diagnostic push
    835 #   pragma GCC diagnostic ignored "-Wdeprecated-declarations"
    836 #  endif
    837832
    838833bool UIHostComboEditorPrivate::x11Event(XEvent *pEvent)
     
    845840            /* Get key-code: */
    846841            XKeyEvent *pKeyEvent = (XKeyEvent*)pEvent;
     842            RT_GCC_NO_DEPRECATED_BEGIN
    847843            KeySym ks = ::XKeycodeToKeysym(pKeyEvent->display, pKeyEvent->keycode, 0);
     844            RT_GCC_NO_DEPRECATED_END
    848845
    849846            int iKeySym = (int)ks;
     
    859856}
    860857
    861 #  if RT_GNUC_PREREQ(4, 6)
    862 #   pragma GCC diagnostic pop
    863 #  endif
    864858# endif /* VBOX_WS_X11 */
    865859
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