AGX Dynamics 2.42.0.2
Loading...
Searching...
No Matches
PopDisableWarnings.h
Go to the documentation of this file.
1/*
2Copyright 2007-2025. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17
18/*
19No include guard on purpose - this is for easier enabling/disabling of warnings
20around includes of external header files.
21
22ALWAYS 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