1 | /*------------------------------------------------------------------------- |
---|
2 | This source file is a part of OGRE |
---|
3 | (Object-oriented Graphics Rendering Engine) |
---|
4 | |
---|
5 | For the latest info, see http://www.ogre3d.org/ |
---|
6 | |
---|
7 | Copyright (c) 2000-2013 Torus Knot Software Ltd |
---|
8 | Permission is hereby granted, free of charge, to any person obtaining a copy |
---|
9 | of this software and associated documentation files (the "Software"), to deal |
---|
10 | in the Software without restriction, including without limitation the rights |
---|
11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
---|
12 | copies of the Software, and to permit persons to whom the Software is |
---|
13 | furnished to do so, subject to the following conditions: |
---|
14 | |
---|
15 | The above copyright notice and this permission notice shall be included in |
---|
16 | all copies or substantial portions of the Software. |
---|
17 | |
---|
18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
---|
19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
---|
20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
---|
21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
---|
22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
---|
23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
---|
24 | THE SOFTWARE |
---|
25 | -------------------------------------------------------------------------*/ |
---|
26 | // ATTENTION: No header guard as this header is meant to be included |
---|
27 | // multiple times. |
---|
28 | //#ifndef __OgreHeaderPrefix_H__ |
---|
29 | //#define __OgreHeaderPrefix_H__ |
---|
30 | |
---|
31 | #if OGRE_COMPILER == OGRE_COMPILER_MSVC |
---|
32 | |
---|
33 | // Save warnings state |
---|
34 | # pragma warning (push) |
---|
35 | // Turn off warnings generated by long std templates |
---|
36 | // This warns about truncation to 255 characters in debug/browse info |
---|
37 | # pragma warning (disable : 4786) |
---|
38 | |
---|
39 | // Turn off warnings generated by long std templates |
---|
40 | // This warns about truncation to 255 characters in debug/browse info |
---|
41 | # pragma warning (disable : 4503) |
---|
42 | |
---|
43 | // disable: "<type> needs to have dll-interface to be used by clients' |
---|
44 | // Happens on STL member variables which are not public therefore is ok |
---|
45 | # pragma warning (disable : 4251) |
---|
46 | |
---|
47 | // disable: "non dll-interface class used as base for dll-interface class" |
---|
48 | // Happens when deriving from Singleton because bug in compiler ignores |
---|
49 | // template export |
---|
50 | # pragma warning (disable : 4275) |
---|
51 | |
---|
52 | // disable: "C++ Exception Specification ignored" |
---|
53 | // This is because MSVC 6 did not implement all the C++ exception |
---|
54 | // specifications in the ANSI C++ draft. |
---|
55 | # pragma warning( disable : 4290 ) |
---|
56 | |
---|
57 | // disable: "no suitable definition provided for explicit template |
---|
58 | // instantiation request" Occurs in VC7 for no justifiable reason on all |
---|
59 | // #includes of Singleton |
---|
60 | # pragma warning( disable: 4661) |
---|
61 | |
---|
62 | // disable: deprecation warnings when using CRT calls in VC8 |
---|
63 | // These show up on all C runtime lib code in VC8, disable since they clutter |
---|
64 | // the warnings with things we may not be able to do anything about (e.g. |
---|
65 | // generated code from nvparse etc). I doubt very much that these calls |
---|
66 | // will ever be actually removed from VC anyway, it would break too much code. |
---|
67 | # pragma warning( disable: 4996) |
---|
68 | |
---|
69 | // disable: "conditional expression constant", always occurs on |
---|
70 | // OGRE_MUTEX_CONDITIONAL when no threading enabled |
---|
71 | # pragma warning (disable : 4127) |
---|
72 | |
---|
73 | // disable: "unreferenced formal parameter" |
---|
74 | // Many versions of VC have bugs which generate this error in cases where they shouldn't |
---|
75 | # pragma warning (disable : 4100) |
---|
76 | |
---|
77 | #endif |
---|
78 | |
---|
79 | |
---|
80 | //#endif |
---|
81 | |
---|
82 | |
---|