VirtualBox

Changeset 62358 in vbox


Ignore:
Timestamp:
Jul 20, 2016 2:03:37 PM (8 years ago)
Author:
vboxsync
Message:

*: renamed RT_GCC_NO_DEPRECATED_BEGIN/END => RT_GCC_NO_WARN_DEPRECATED_BEGIN/END and added RT_GCC_NO_WARN_CONVERSION_BEGIN/END

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/HostServices/Service.h

    r62156 r62358  
    358358            else
    359359            {
    360                 RT_GCC_NO_DEPRECATED_BEGIN
     360                RT_GCC_NO_WARN_DEPRECATED_BEGIN
    361361                std::auto_ptr<AbstractService> apService;
    362362                /* No exceptions may propagate outside. */
     
    371371                    rc = VERR_UNRESOLVED_ERROR;
    372372                }
    373                 RT_GCC_NO_DEPRECATED_END
     373                RT_GCC_NO_WARN_DEPRECATED_END
    374374                if (RT_SUCCESS(rc))
    375375                {
  • trunk/include/iprt/cdefs.h

    r62155 r62358  
    988988#endif
    989989
     990/** @def RT_GCC_NO_WARN_DEPRECATED_BEGIN
     991 * Used to start a block of code where GCC should not warn about deprecated
     992 * declarations. */
    990993#if RT_GNUC_PREREQ(4, 6)
    991 # define RT_GCC_NO_DEPRECATED_BEGIN \
     994# define RT_GCC_NO_WARN_DEPRECATED_BEGIN \
    992995   _Pragma("GCC diagnostic push") \
    993996   _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
    994 # define RT_GCC_NO_DEPRECATED_END \
     997/** @def RT_GCC_NO_WARN_DEPRECATED_END
     998 * Used to end a block of code where GCC should not warn about deprecated
     999 * declarations. */
     1000# define RT_GCC_NO_WARN_DEPRECATED_END \
    9951001   _Pragma("GCC diagnostic pop")
    9961002#else
    997 # define RT_GCC_NO_DEPRECATED_BEGIN
    998 # define RT_GCC_NO_DEPRECATED_END
     1003# define RT_GCC_NO_WARN_DEPRECATED_BEGIN
     1004# define RT_GCC_NO_WARN_DEPRECATED_END
     1005#endif
     1006
     1007/** @def RT_GCC_NO_WARN_CONVERSION_BEGIN
     1008 * Used to start a block of code where GCC should not warn about implicit
     1009 * conversions that may alter a value. */
     1010#if RT_GNUC_PREREQ(4, 4)
     1011# define RT_GCC_NO_WARN_CONVERSION_BEGIN \
     1012   _Pragma("GCC diagnostic push") \
     1013   _Pragma("GCC diagnostic ignored \"-Wconversion\"")
     1014/** @def RT_GCC_NO_WARN_CONVERSION_END
     1015 * Used to end a block of code where GCC should not warn about implicit
     1016 * conversions that may alter a value. */
     1017# define RT_GCC_NO_WARN_CONVERSION_END \
     1018   _Pragma("GCC diagnostic pop")
     1019#else
     1020# define RT_GCC_NO_WARN_CONVERSION_BEGIN
     1021# define RT_GCC_NO_WARN_CONVERSION_END
    9991022#endif
    10001023
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIHostComboEditor.cpp

    r62156 r62358  
    703703            /* Parse key-event: */
    704704            xcb_key_press_event_t *pKeyEvent = static_cast<xcb_key_press_event_t*>(pMessage);
    705             RT_GCC_NO_DEPRECATED_BEGIN
     705            RT_GCC_NO_WARN_DEPRECATED_BEGIN
    706706            const KeySym ks = ::XKeycodeToKeysym(QX11Info::display(), pKeyEvent->detail, 0);
    707             RT_GCC_NO_DEPRECATED_END
     707            RT_GCC_NO_WARN_DEPRECATED_END
    708708            const int iKeySym = static_cast<const int>(ks);
    709709
     
    840840            /* Get key-code: */
    841841            XKeyEvent *pKeyEvent = (XKeyEvent*)pEvent;
    842             RT_GCC_NO_DEPRECATED_BEGIN
     842            RT_GCC_NO_WARN_DEPRECATED_BEGIN
    843843            KeySym ks = ::XKeycodeToKeysym(pKeyEvent->display, pKeyEvent->keycode, 0);
    844             RT_GCC_NO_DEPRECATED_END
     844            RT_GCC_NO_WARN_DEPRECATED_END
    845845
    846846            int iKeySym = (int)ks;
  • trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp

    r62157 r62358  
    21692169
    21702170    /* Initialize our worker task. */
    2171     RT_GCC_NO_DEPRECATED_BEGIN
     2171    RT_GCC_NO_WARN_DEPRECATED_BEGIN
    21722172    std::auto_ptr<GuestSessionTask> task(pTask);
    2173     RT_GCC_NO_DEPRECATED_END
     2173    RT_GCC_NO_WARN_DEPRECATED_END
    21742174    int rc = task->RunAsync(strTaskDesc, pProgress);
    21752175    if (RT_FAILURE(rc))
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