CppAD: A C++ Algorithmic Differentiation Package  20171217
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
wno_conversion.hpp
Go to the documentation of this file.
1 # ifndef CPPAD_WNO_CONVERSION_HPP
2 # define CPPAD_WNO_CONVERSION_HPP
3 /* --------------------------------------------------------------------------
4 CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-17 Bradley M. Bell
5 
6 CppAD is distributed under multiple licenses. This distribution is under
7 the terms of the
8  Eclipse Public License Version 1.0.
9 
10 A copy of this license is included in the COPYING file of this distribution.
11 Please visit http://www.coin-or.org/CppAD/ for information on other licenses.
12 -------------------------------------------------------------------------- */
13 
14 /*
15 $begin wno_conversion$$
16 $spell
17  cppad
18  wno
19  cpp
20  hpp
21 $$
22 
23 $section Suppress Suspect Implicit Conversion Warnings$$
24 
25 $head Syntax$$
26 $codei%# include <cppad/wno_conversion.hpp>%$$
27 
28 $head Purpose$$
29 In many cases it is good to have warnings for implicit conversions
30 that may loose range or precision.
31 The include command above, before any other includes, suppresses
32 these warning for a particular compilation unit (which usually corresponds
33 to a $icode%*%.cpp%$$ file).
34 
35 $end
36 */
37 
38 # include <cppad/configure.hpp>
39 # if CPPAD_COMPILER_IS_GNUCXX
40 # pragma GCC diagnostic ignored "-Wfloat-conversion"
41 # pragma GCC diagnostic ignored "-Wconversion"
42 # endif
43 
44 # endif