From: Timo Heister Date: Wed, 10 Feb 2016 18:09:04 +0000 (-0500) Subject: disable gcc warning X-Git-Tag: v8.4.0-rc2~17^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2152%2Fhead;p=dealii.git disable gcc warning 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); --- diff --git a/include/deal.II/base/config.h.in b/include/deal.II/base/config.h.in index c4dea5d519..f973af1e6e 100644 --- a/include/deal.II/base/config.h.in +++ b/include/deal.II/base/config.h.in @@ -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\"") \ diff --git a/source/base/parameter_handler.cc b/source/base/parameter_handler.cc index 28ecc77f9e..dab4492046 100644 --- a/source/base/parameter_handler.cc +++ b/source/base/parameter_handler.cc @@ -20,9 +20,11 @@ #include #include +DEAL_II_DISABLE_EXTRA_DIAGNOSTICS #include #include #include +DEAL_II_ENABLE_EXTRA_DIAGNOSTICS #include #include