Changeset 85342 in vbox for trunk/include
- Timestamp:
- Jul 14, 2020 4:06:35 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/cdefs.h
r85278 r85342 1024 1024 1025 1025 /** @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) 1029 1039 # define RT_GCC_NO_WARN_DEPRECATED_BEGIN \ 1030 1040 _Pragma("GCC diagnostic push") \ 1031 1041 _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") 1032 /** @def RT_GCC_NO_WARN_DEPRECATED_END1033 * Used to end a block of code where GCC should not warn about deprecated1034 * declarations. */1035 1042 # define RT_GCC_NO_WARN_DEPRECATED_END \ 1036 1043 _Pragma("GCC diagnostic pop")
Note:
See TracChangeset
for help on using the changeset viewer.