AGX Dynamics  2.37.3.2
PopDisableWarnings.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2024. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 
18 /*
19 No include guard on purpose - this is for easier enabling/disabling of warnings
20 around includes of external header files.
21 
22 ALWAYS REMEMBER to include in the following order:
23 
24 ...
25 #include <agx/PushDisableWarnings.h> // Disabling warnings. Include agx/PopDisableWarnings.h below!
26 #include <externalHeaderFoo.h>
27 #include <externalHeaderBar.h>
28 ...
29 #include <agx/PopDisableWarnings.h> // End of disabled warnings.
30 ...
31 */
32 
33 // define AGX_WARNINGS_IN_EXTERNAL_HEADERS if warnings in external headers should be enabled
34 #ifndef AGX_WARNINGS_IN_EXTERNAL_HEADERS
35 
36 
37 #ifdef _MSC_VER
38 # pragma warning(pop)
39 #endif
40 
41 #ifdef __clang__
42 # pragma clang diagnostic pop
43 #elif defined(__GNUC__) && ( __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6 ) )
44 # pragma GCC diagnostic pop
45 #endif
46 
47 #if defined(__APPLE__)
48 // OSG with deprecated OpenGL API
49 #undef GL_SILENCE_DEPRECATION
50 #endif
51 
52 #endif