VirtualBox

Changeset 62358 in vbox for trunk/include


Ignore:
Timestamp:
Jul 20, 2016 2:03:37 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
108903
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/include
Files:
2 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
Note: See TracChangeset for help on using the changeset viewer.

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