Changeset 62358 in vbox
- Timestamp:
- Jul 20, 2016 2:03:37 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 4 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 -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIHostComboEditor.cpp
r62156 r62358 703 703 /* Parse key-event: */ 704 704 xcb_key_press_event_t *pKeyEvent = static_cast<xcb_key_press_event_t*>(pMessage); 705 RT_GCC_NO_ DEPRECATED_BEGIN705 RT_GCC_NO_WARN_DEPRECATED_BEGIN 706 706 const KeySym ks = ::XKeycodeToKeysym(QX11Info::display(), pKeyEvent->detail, 0); 707 RT_GCC_NO_ DEPRECATED_END707 RT_GCC_NO_WARN_DEPRECATED_END 708 708 const int iKeySym = static_cast<const int>(ks); 709 709 … … 840 840 /* Get key-code: */ 841 841 XKeyEvent *pKeyEvent = (XKeyEvent*)pEvent; 842 RT_GCC_NO_ DEPRECATED_BEGIN842 RT_GCC_NO_WARN_DEPRECATED_BEGIN 843 843 KeySym ks = ::XKeycodeToKeysym(pKeyEvent->display, pKeyEvent->keycode, 0); 844 RT_GCC_NO_ DEPRECATED_END844 RT_GCC_NO_WARN_DEPRECATED_END 845 845 846 846 int iKeySym = (int)ks; -
trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp
r62157 r62358 2169 2169 2170 2170 /* Initialize our worker task. */ 2171 RT_GCC_NO_ DEPRECATED_BEGIN2171 RT_GCC_NO_WARN_DEPRECATED_BEGIN 2172 2172 std::auto_ptr<GuestSessionTask> task(pTask); 2173 RT_GCC_NO_ DEPRECATED_END2173 RT_GCC_NO_WARN_DEPRECATED_END 2174 2174 int rc = task->RunAsync(strTaskDesc, pProgress); 2175 2175 if (RT_FAILURE(rc))
Note:
See TracChangeset
for help on using the changeset viewer.