VirtualBox

Changeset 85342 in vbox for trunk/include


Ignore:
Timestamp:
Jul 14, 2020 4:06:35 PM (5 years ago)
Author:
vboxsync
Message:

iprt/cdefs.h: Adjustments to RT_GCC_NO_WARN_DEPRECATED_BEGIN and RT_GCC_NO_WARN_DEPRECATED_END for Clang. bugref:9790

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cdefs.h

    r85278 r85342  
    10241024
    10251025/** @def RT_GCC_NO_WARN_DEPRECATED_BEGIN
    1026  * Used to start a block of code where GCC should not warn about deprecated
    1027  * declarations. */
    1028 #if RT_GNUC_PREREQ(4, 6)
     1026 * Used to start a block of code where GCC and Clang should not warn about
     1027 * deprecated declarations. */
     1028/** @def RT_GCC_NO_WARN_DEPRECATED_END
     1029 * Used to end a block of code where GCC and Clang should not warn about
     1030 * deprecated declarations. */
     1031#if RT_CLANG_PREREQ(4, 0)
     1032# define RT_GCC_NO_WARN_DEPRECATED_BEGIN \
     1033   _Pragma("clang diagnostic push") \
     1034   _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
     1035# define RT_GCC_NO_WARN_DEPRECATED_END \
     1036   _Pragma("clang diagnostic pop")
     1037
     1038#elif RT_GNUC_PREREQ(4, 6)
    10291039# define RT_GCC_NO_WARN_DEPRECATED_BEGIN \
    10301040   _Pragma("GCC diagnostic push") \
    10311041   _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
    1032 /** @def RT_GCC_NO_WARN_DEPRECATED_END
    1033  * Used to end a block of code where GCC should not warn about deprecated
    1034  * declarations. */
    10351042# define RT_GCC_NO_WARN_DEPRECATED_END \
    10361043   _Pragma("GCC diagnostic pop")
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