Seamly2D
Code documentation
qmuparserfixes.h
Go to the documentation of this file.
1 /***************************************************************************************************
2  **
3  ** Copyright (C) 2013 Ingo Berg
4  **
5  ** Permission is hereby granted, free of charge, to any person obtaining a copy of this
6  ** software and associated documentation files (the "Software"), to deal in the Software
7  ** without restriction, including without limitation the rights to use, copy, modify,
8  ** merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
9  ** permit persons to whom the Software is furnished to do so, subject to the following conditions:
10  **
11  ** The above copyright notice and this permission notice shall be included in all copies or
12  ** substantial portions of the Software.
13  **
14  ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
15  ** NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
16  ** NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
17  ** DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18  ** OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19  **
20  ******************************************************************************************************/
21 
22 #ifndef QMUPARSERFIXES_H
23 #define QMUPARSERFIXES_H
24 
25 /** @file
26  @brief This file contains compatibility fixes for some platforms.
27 */
28 
29 //
30 // Compatibility fixes
31 //
32 
33 //---------------------------------------------------------------------------
34 //
35 // Intel Compiler
36 //
37 //---------------------------------------------------------------------------
38 
39 #ifdef __INTEL_COMPILER
40 
41 // remark #981: operands are evaluated in unspecified order
42 // disabled -> completely pointless if the functions do not have side effects
43 //
44 #pragma warning(disable:981)
45 
46 // remark #383: value copied to temporary, reference to temporary used
47 #pragma warning(disable:383)
48 
49 // remark #1572: floating-point equality and inequality comparisons are unreliable
50 // disabled -> everyone knows it, the parser passes this problem
51 // deliberately to the user
52 #pragma warning(disable:1572)
53 
54 #endif
55 
56 #endif // include guard