Changeset 62358 in vbox for trunk/include
- Timestamp:
- Jul 20, 2016 2:03:37 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 108903
- Location:
- trunk/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/HostServices/Service.h
r62156 r62358 358 358 else 359 359 { 360 RT_GCC_NO_ DEPRECATED_BEGIN360 RT_GCC_NO_WARN_DEPRECATED_BEGIN 361 361 std::auto_ptr<AbstractService> apService; 362 362 /* No exceptions may propagate outside. */ … … 371 371 rc = VERR_UNRESOLVED_ERROR; 372 372 } 373 RT_GCC_NO_ DEPRECATED_END373 RT_GCC_NO_WARN_DEPRECATED_END 374 374 if (RT_SUCCESS(rc)) 375 375 { -
trunk/include/iprt/cdefs.h
r62155 r62358 988 988 #endif 989 989 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. */ 990 993 #if RT_GNUC_PREREQ(4, 6) 991 # define RT_GCC_NO_ DEPRECATED_BEGIN \994 # define RT_GCC_NO_WARN_DEPRECATED_BEGIN \ 992 995 _Pragma("GCC diagnostic push") \ 993 996 _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 \ 995 1001 _Pragma("GCC diagnostic pop") 996 1002 #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 999 1022 #endif 1000 1023
Note:
See TracChangeset
for help on using the changeset viewer.