1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-29 14:00:49 +03:00

Fix of compiler warnings on OCCT 7.0.0.beta (CLang and VC++ 14)

This commit is contained in:
abv
2015-12-27 14:48:22 +03:00
parent 13c7b7a395
commit 8bb8064e8f
5 changed files with 12 additions and 19 deletions

View File

@@ -184,8 +184,12 @@ namespace opencascade {
template <typename T>
const Handle(Standard_Type)& type_instance<T>::get ()
{
#if (defined(_MSC_VER) && _MSC_VER < 1800) || \
(defined(__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 3)) && \
! defined(__clang__) && ! defined(__INTEL_COMPILER))
// ensure that myInstance is instantiated
(void)myInstance;
#endif
// static variable inside function ensures that descriptors
// are initialized in correct sequence