BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
w32pragma.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file Wrap/w32pragma.h
6 //! @brief Pragmas and defines for MSVC.
7 //! Always included per cmake/BornAgain/Windows.cmake
8 //
9 // ************************************************************************************************
10 
11 /*************************************************************************
12  * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. *
13  * All rights reserved. *
14  * *
15  * For the licensing terms see $ROOTSYS/LICENSE. *
16  * For the list of contributors see $ROOTSYS/README/CREDITS. *
17  *************************************************************************/
18 
19 #ifndef BORNAGAIN_WRAP_W32PRAGMA_H
20 #define BORNAGAIN_WRAP_W32PRAGMA_H
21 
22 /*************************************************************************
23  * *
24  * w32pragma *
25  * *
26  * Pragmas and defines for MSVC *
27  * *
28  *************************************************************************/
29 
30 #ifdef _WIN32
31 
32 /* Disable warning about truncated symboles (usually coming from stl) */
33 #pragma warning(disable : 4786)
34 /* Disable warning about inconsistent dll linkage (dllexport assumed) */
35 #pragma warning(disable : 4273)
36 /* "no suitable definition provided for explicit template instantiation"*/
37 #pragma warning(disable : 4661)
38 /* "deprecated, use ISO C++ conformant name" */
39 #pragma warning(disable : 4996)
40 /* "new behavior: elements default initialized" */
41 #pragma warning(disable : 4351)
42 /* local static not thread safe */
43 #pragma warning(disable : 4640)
44 /*forcing int to bool (performance warning) */
45 #pragma warning(disable : 4800)
46 /* truncation from double to float */
47 #pragma warning(disable : 4305)
48 /* signed unsigned mismatch */
49 #pragma warning(disable : 4018)
50 /* truncation of constant value */
51 #pragma warning(disable : 4309)
52 /* check op precedence for error */
53 #pragma warning(disable : 4554)
54 /* qualifier applied to reference type; ignored */
55 #pragma warning(disable : 4181)
56 /* /GS can not buffer overrun protect parameters and locals: function not optimized */
57 #pragma warning(disable : 4748)
58 /* function(): resolved overload was found by argument-dependent lookup */
59 #pragma warning(disable : 4675)
60 /* X needs to have dll-interface to be used by clients of class Y */
61 #pragma warning(disable : 4251)
62 /* decorated name length exceeded, name was truncated */
63 #pragma warning(disable : 4503)
64 
65 /* function is hidden */
66 #pragma warning(3 : 4266)
67 /* loop control variable is used outside the for-loop scope */
68 #pragma warning(3 : 4289)
69 
70 /* no override available for virtual member function from base */
71 #pragma warning(disable : 4266)
72 
73 #endif // _WIN32
74 
75 #endif // BORNAGAIN_WRAP_W32PRAGMA_H