ML Reference
MeVis/Foundation/Sources/MLUtilities/mlSystemWarningsDisable.h
Go to the documentation of this file.
00001 // **InsertLicense** code
00002 //-------------------------------------------------------------------------
00006 
00011 //-------------------------------------------------------------------------
00012 
00013 // Do not use include guards since this file must be includable multiply!
00014 
00015 //--------------------------------------------------------------------------------------
00016 // Suppress warning suppressions in Visual C++ and include all non ML includes here
00017 //--------------------------------------------------------------------------------------
00018 #ifdef _MSC_VER
00019 
00020 // Turn off MSVC deprecated warnings about standard POSIX functions like strdup.
00021 #ifndef _CRT_NONSTDC_NO_DEPRECATE
00022 #define _CRT_NONSTDC_NO_DEPRECATE
00023 #endif
00024 
00025 
00028 #pragma warning( push )
00029 
00031 #ifndef _DEBUG
00032 #pragma warning(disable : 4702)
00033 #endif
00034 
00037 #if _MSC_VER <= 1200
00038 #pragma warning( disable : 4284 )
00039 #endif
00040 
00042 #pragma warning( disable : 4005 )
00043 
00045 #pragma warning( disable : 4018 )
00046 
00048 #pragma warning( disable : 4061 )
00049 
00051 #pragma warning( default : 4100 )
00052 
00054 #pragma warning( disable : 4127 )
00055 
00057 #pragma warning( disable : 4146 )
00058 
00062 #pragma warning( disable : 4242 4244 4267 )
00063 
00065 #pragma warning( disable : 4347 )
00066 
00067 //# 'boost::exception_detail::error_info_container' : class has virtual functions, but destructor is not virtual
00068 #pragma warning( disable : 4265 )
00069 
00070 //# 'type cast' : truncation from 'void *const ' to 'long' 
00071 #pragma warning( disable : 4302 )
00072 
00073 //# 4350: behavior change: 'ABC' called instead of 'DEF'
00074 #pragma warning( disable : 4350 )
00075 
00076 //# 4365: 'return' : conversion from 'size_t' to 'ptrdiff_t', signed/unsigned mismatch, e.g. in boost headers.
00077 #pragma warning( disable : 4365 )
00078 
00079 //# 'std::_List_nod<_Ty,_Alloc>::_Node' : default constructor could not be generated
00080 #pragma warning( disable : 4510 )
00081 
00082 //# 4512: 'boost::detail::future_object_base::relocker' : assignment operator could not be generated
00083 #pragma warning( disable : 4512 )
00084 
00085 //# 'abs' : unreferenced inline function has been removed
00086 #pragma warning( disable : 4514 )
00087 
00088 //# expression before comma has no effect; expected expression with side-effect
00089 //# 4555: expression has no effect; expected expression with side-effect
00090 #pragma warning( disable : 4548 4555 )
00091 
00092 //# struct 'std::_List_nod<_Ty,_Alloc>::_Node' can never be instantiated - user defined constructor required
00093 #pragma warning( disable : 4610 )
00094 
00095 //# Some boost headers etc. switch off VC6 warnings which do not exist any more. 
00096 //# So disable warnings about it.
00097 //# #pragma warning : there is no warning number '4284'
00098 #pragma warning( disable : 4619 )
00099 
00100 //# 'std::num_get<_Elem,_InIt>' : copy constructor could not be generated because a base class copy constructor is inaccessible
00101 #pragma warning( disable : 4625 )
00102 
00103 //# 'std::numpunct<_Elem>' : assignment operator could not be generated because a base class assignment operator is inaccessible
00104 #pragma warning( disable : 4626 )
00105 
00106 //# digraphs not supported with -Ze
00107 #pragma warning( disable : 4628 )
00108 
00109 //# 'e' : construction of local static object is not thread-safe
00110 #pragma warning( disable : 4640 )
00111 
00112 //# '__midl' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
00113 #pragma warning( disable : 4668 )
00114 
00115 //#'boost::foreach_detail_::make_probe' : possible change in behavior, change in UDT return calling convention 
00116 #pragma warning( disable : 4686 )
00117 
00118 //# 4702: unreachable code
00119 #pragma warning( disable : 4702 )
00120 
00121 //# 4714: function  marked as __forceinline not inlined
00122 #pragma warning( disable : 4714 )
00123 
00124 //# 'vc_attributes::Pre' : '4' bytes padding added after data member 'vc_attributes::Pre::Access'
00125 #pragma warning( disable : 4820 )
00126 
00127 //# Conversion from 'const void *' to 'void * __ptr64' is sign-extended. This may cause unexpected runtime behavior. 
00128 #pragma warning( disable : 4826 )
00129 
00130 //# 4986 'operator delete': exception specification does not match previous declaration
00131 #pragma warning( disable : 4986 )
00132 
00133 //# 4996 : 'std::copy': Function call with parameters that may be unsafe or 
00134 //#         cv::flann::Index_<T>': was declared deprecated
00135 #pragma warning( disable : 4996 )
00136 
00137 #endif
00138 
00139