ML Reference
|
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 #if _MSC_VER < 1700 00066 #pragma warning( disable : 4347 ) 00067 #else 00068 00069 00070 #pragma warning( disable : 4435 ) 00071 #endif 00072 00073 //# 'boost::exception_detail::error_info_container' : class has virtual functions, but destructor is not virtual 00074 #pragma warning( disable : 4265 ) 00075 00076 //# 'type cast' : truncation from 'void *const ' to 'long' 00077 #pragma warning( disable : 4302 ) 00078 00079 //# 4350: behavior change: 'ABC' called instead of 'DEF' 00080 #pragma warning( disable : 4350 ) 00081 00082 //# 4365: 'return' : conversion from 'size_t' to 'ptrdiff_t', signed/unsigned mismatch, e.g. in boost headers. 00083 #pragma warning( disable : 4365 ) 00084 00085 //# 'std::_List_nod<_Ty,_Alloc>::_Node' : default constructor could not be generated 00086 #pragma warning( disable : 4510 ) 00087 00088 //# 4512: 'boost::detail::future_object_base::relocker' : assignment operator could not be generated 00089 #pragma warning( disable : 4512 ) 00090 00091 //# 'abs' : unreferenced inline function has been removed 00092 #pragma warning( disable : 4514 ) 00093 00094 //# expression before comma has no effect; expected expression with side-effect 00095 //# 4555: expression has no effect; expected expression with side-effect 00096 #pragma warning( disable : 4548 4555 ) 00097 00098 //# struct 'std::_List_nod<_Ty,_Alloc>::_Node' can never be instantiated - user defined constructor required 00099 #pragma warning( disable : 4610 ) 00100 00101 //# Some boost headers etc. switch off VC6 warnings which do not exist any more. 00102 //# So disable warnings about it. 00103 //# #pragma warning : there is no warning number '4284' 00104 #pragma warning( disable : 4619 ) 00105 00106 //# 'std::num_get<_Elem,_InIt>' : copy constructor could not be generated because a base class copy constructor is inaccessible 00107 #pragma warning( disable : 4625 ) 00108 00109 //# 'std::numpunct<_Elem>' : assignment operator could not be generated because a base class assignment operator is inaccessible 00110 #pragma warning( disable : 4626 ) 00111 00112 //# digraphs not supported with -Ze 00113 #pragma warning( disable : 4628 ) 00114 00115 //# 'e' : construction of local static object is not thread-safe 00116 #pragma warning( disable : 4640 ) 00117 00118 //# '__midl' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif' 00119 #pragma warning( disable : 4668 ) 00120 00121 //#'boost::foreach_detail_::make_probe' : possible change in behavior, change in UDT return calling convention 00122 #pragma warning( disable : 4686 ) 00123 00124 //# 4702: unreachable code 00125 #pragma warning( disable : 4702 ) 00126 00127 //# 4714: function marked as __forceinline not inlined 00128 #pragma warning( disable : 4714 ) 00129 00130 //# 'vc_attributes::Pre' : '4' bytes padding added after data member 'vc_attributes::Pre::Access' 00131 #pragma warning( disable : 4820 ) 00132 00133 //# Conversion from 'const void *' to 'void * __ptr64' is sign-extended. This may cause unexpected runtime behavior. 00134 #pragma warning( disable : 4826 ) 00135 00136 //# reinterpret_cast used between related classes: 'class1' and 'class2' 00137 #pragma warning( disable : 4946 ) 00138 00139 //# 4986 'operator delete': exception specification does not match previous declaration 00140 #pragma warning( disable : 4986 ) 00141 00142 //# 4996 : 'std::copy': Function call with parameters that may be unsafe or 00143 //# cv::flann::Index_<T>': was declared deprecated 00144 #pragma warning( disable : 4996 ) 00145 00146 #endif 00147 00148