]> https://gitweb.dealii.org/ - dealii.git/commitdiff
disable gcc warning 2152/head
authorTimo Heister <timo.heister@gmail.com>
Wed, 10 Feb 2016 18:09:04 +0000 (13:09 -0500)
committerTimo Heister <timo.heister@gmail.com>
Wed, 10 Feb 2016 20:40:25 +0000 (15:40 -0500)
In file included from /usr/include/c++/4.8/cassert:43:0,
                 from /ssd/libs-
candi/boost_1_60_0/include/boost/property_tree/detail/json_parser/narrow_encoding.hpp:6,
                 from /ssd/libs-
candi/boost_1_60_0/include/boost/property_tree/detail/json_parser/read.hpp:14,
                 from /ssd/libs-
candi/boost_1_60_0/include/boost/property_tree/json_parser.hpp:16,
                 from /ssd/deal-git/source/base/parameter_handler.cc:26:
/ssd/libs-
candi/boost_1_60_0/include/boost/property_tree/detail/json_parser/narrow_encoding.hpp:
In member function â€˜char
boost::property_tree::json_parser::detail::utf8_utf8_encoding::to_internal_trivial(char)
const’:
/ssd/libs-
candi/boost_1_60_0/include/boost/property_tree/detail/json_parser/narrow_encoding.hpp:71:25:
warning: comparison is always true due to limited range of data type
[-Wtype-limits]
             assert(c <= 0x7f);

include/deal.II/base/config.h.in
source/base/parameter_handler.cc

index c4dea5d5191f6dcdc1974084ec1ba503fe70536b..f973af1e6ed7dd80c8296f1f11d2305839040480 100644 (file)
@@ -283,6 +283,7 @@ _Pragma("GCC diagnostic ignored \"-Woverloaded-virtual\"")       \
 _Pragma("GCC diagnostic ignored \"-Wunused-function\"")          \
 _Pragma("GCC diagnostic ignored \"-Wunused-parameter\"")         \
 _Pragma("GCC diagnostic ignored \"-Wunused-variable\"")          \
+_Pragma("GCC diagnostic ignored \"-Wtype-limits\"")              \
 _Pragma("GCC diagnostic ignored \"-Wunused-but-set-parameter\"") \
 _Pragma("GCC diagnostic ignored \"-Wnested-anon-types\"")        \
 _Pragma("GCC diagnostic ignored \"-Wunused-private-field\"")     \
index 28ecc77f9e480f8869332846a28130317ea34366..dab4492046e7eddd76fd0d74e66d4176f645936b 100644 (file)
 #include <deal.II/base/memory_consumption.h>
 #include <deal.II/base/utilities.h>
 
+DEAL_II_DISABLE_EXTRA_DIAGNOSTICS
 #include <boost/property_tree/ptree.hpp>
 #include <boost/property_tree/xml_parser.hpp>
 #include <boost/property_tree/json_parser.hpp>
+DEAL_II_ENABLE_EXTRA_DIAGNOSTICS
 
 #include <fstream>
 #include <iostream>

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.