From: osa Date: Mon, 24 May 2021 06:59:39 +0000 (+0300) Subject: 0032385: Coding - New msvc10 warnings after integration fix for 32338 X-Git-Tag: V7_6_0_beta~124 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=18a353149e5bb1eb2601098a6eac791ad9e7cf2c;p=occt.git 0032385: Coding - New msvc10 warnings after integration fix for 32338 --- diff --git a/src/SelectMgr/SelectMgr_SelectingVolumeManager.hxx b/src/SelectMgr/SelectMgr_SelectingVolumeManager.hxx index 4bc7431404..1cd81cadd3 100644 --- a/src/SelectMgr/SelectMgr_SelectingVolumeManager.hxx +++ b/src/SelectMgr/SelectMgr_SelectingVolumeManager.hxx @@ -248,17 +248,21 @@ public: public: +//! Deprecated static const class members aren't supported for Visual Studio prior to 2015 (vc14) +//! and GCC >= 5.0 and GCC < 6.3 (due to bug when warning was raised without member usage). +#if (!defined(_MSC_VER) || (_MSC_VER >= 1900)) && (!defined(__GNUC__) || (__GNUC__ != 5 && (__GNUC__ != 6 || __GNUC_MINOR__ >= 3))) Standard_DEPRECATED("Deprecated alias - SelectMgr_SelectionType should be used instead") static const SelectMgr_SelectionType Point = SelectMgr_SelectionType_Point; Standard_DEPRECATED("Deprecated alias - SelectMgr_SelectionType should be used instead") - static const SelectMgr_SelectionType Box = SelectMgr_SelectionType_Point; + static const SelectMgr_SelectionType Box = SelectMgr_SelectionType_Box; Standard_DEPRECATED("Deprecated alias - SelectMgr_SelectionType should be used instead") - static const SelectMgr_SelectionType Polyline = SelectMgr_SelectionType_Point; + static const SelectMgr_SelectionType Polyline = SelectMgr_SelectionType_Polyline; Standard_DEPRECATED("Deprecated alias - SelectMgr_SelectionType should be used instead") - static const SelectMgr_SelectionType Unknown = SelectMgr_SelectionType_Point; + static const SelectMgr_SelectionType Unknown = SelectMgr_SelectionType_Unknown; +#endif Standard_DEPRECATED("Deprecated method - InitPointSelectingVolume() and Build() methods should be used instead") Standard_EXPORT void BuildSelectingVolume (const gp_Pnt2d& thePoint);