Main MRPT website
>
C++ reference for MRPT 1.9.9
mrpt
utils
compiler_fixes.h
Go to the documentation of this file.
1
/* +------------------------------------------------------------------------+
2
| Mobile Robot Programming Toolkit (MRPT) |
3
| http://www.mrpt.org/ |
4
| |
5
| Copyright (c) 2005-2017, Individual contributors, see AUTHORS file |
6
| See: http://www.mrpt.org/Authors - All rights reserved. |
7
| Released under BSD License. See details in http://www.mrpt.org/License |
8
+------------------------------------------------------------------------+ */
9
10
#pragma once
11
12
/* ------------------------------------
13
Disable some warnings
14
------------------------------------ */
15
#if defined(_MSC_VER)
16
#pragma warning(disable : 4127) // Disable conditional expression is constant
17
// (it shows up in templates where it's
18
// correct)
19
#pragma warning(disable : 4244) // argument conversion "possible loss of data"
20
#pragma warning(disable : 4503) // (Compiler: Visual C++ 2010) Disable warning
21
// for too long decorated name
22
#pragma warning(disable : 4714) // force inlined -> not inlined (in Eigen3)
23
#pragma warning(disable : 4267) // truncation size_t -> type
24
#pragma warning(disable : 4290) // Visual C++ does not implement decl.
25
// specifiers: throw(A,B,...)
26
#pragma warning(disable : 4251) // Visual C++ 2003+ warnings on STL classes
27
// when exporting to DLL...
28
#pragma warning(disable : 4275) // DLL export class derived from STL
29
#pragma warning(disable : 4251) // Warnings are emited even if a DLL export class
30
// contains a *private* STL field (?)
31
#if (_MSC_VER >= 1400)
32
// MS believes they have the right to deprecate functions in the C++ Standard
33
// STL... disable their warnings:
34
#ifndef _SCL_SECURE_NO_WARNINGS
35
#define _SCL_SECURE_NO_WARNINGS
36
#endif
37
// For the new secure library in VC++8
38
#if !defined(_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES)
39
#define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES 1
40
#endif
41
#endif
42
#endif
43
44
// Avoid conflicting declaration of max macro in windows headers
45
#if defined(MRPT_OS_WINDOWS) && !defined(NOMINMAX)
46
#define NOMINMAX
47
#ifdef max
48
#undef max
49
#undef min
50
#endif
51
#endif
Page generated by
Doxygen 1.8.14
for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019