mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0027763: Visualization - remove V3d_View::Print() method
Dependency from FreeImagePlus.dll (but not FreeImage.dll) has been removed. Method V3d_View::Export() has been marked as deprecated. Added Standard_DISABLE_DEPRECATION_WARNINGS and Standard_ENABLE_DEPRECATION_WARNINGS to eliminate compiler warnings for using deprecated APIs within Draw Harness for testing. compatibility with gcc 4.5-
This commit is contained in:
@@ -45,6 +45,25 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Disable warnings about deprecated features.
|
||||
// This is useful for sections of code kept for backward compatibility and scheduled for removal.
|
||||
|
||||
#if defined(__ICL) || defined (__INTEL_COMPILER)
|
||||
#define Standard_DISABLE_DEPRECATION_WARNINGS __pragma(warning(push)) __pragma(warning(disable:1478))
|
||||
#define Standard_ENABLE_DEPRECATION_WARNINGS __pragma(warning(pop))
|
||||
#elif defined(_MSC_VER)
|
||||
#define Standard_DISABLE_DEPRECATION_WARNINGS __pragma(warning(push)) __pragma(warning(disable:4996))
|
||||
#define Standard_ENABLE_DEPRECATION_WARNINGS __pragma(warning(pop))
|
||||
#elif (defined(__GNUC__) && __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) || defined(__clang__)
|
||||
// available since at least gcc 4.2 (maybe earlier), however only gcc 4.6+ supports this pragma inside the function body
|
||||
// CLang also supports this gcc syntax (in addition to "clang diagnostic ignored")
|
||||
#define Standard_DISABLE_DEPRECATION_WARNINGS _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
|
||||
#define Standard_ENABLE_DEPRECATION_WARNINGS _Pragma("GCC diagnostic warning \"-Wdeprecated-declarations\"")
|
||||
#else
|
||||
#define Standard_DISABLE_DEPRECATION_WARNINGS
|
||||
#define Standard_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
|
||||
//======================================================
|
||||
// Windows-specific definitions
|
||||
//======================================================
|
||||
|
Reference in New Issue
Block a user