From: Timo Heister Date: Sat, 24 Dec 2016 08:09:25 +0000 (+0100) Subject: disable clangs expansion-to-defined warning X-Git-Tag: v8.5.0-rc1~309^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=784b2216493731d44e66bb2d4af01353732a33fc;p=dealii.git disable clangs expansion-to-defined warning clang produces many warnings inside boost 1.62 of the following kind: /ssd/deal- git/bundled/boost-1.62.0/include/boost/archive/detail/iserializer.hpp:69:7: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined] #if ! DONT_USE_HAS_NEW_OPERATOR ^ /ssd/deal- git/bundled/boost-1.62.0/include/boost/archive/detail/iserializer.hpp:63:12: note: expanded from macro 'DONT_USE_HAS_NEW_OPERATOR' || defined(__SUNPRO_CC) && (__SUNPRO_CC < 0x590) \ ^ So I am adding this to DISABLE_EXTRA_DIAGNOSTICS because we can not fix boost. --- diff --git a/include/deal.II/base/config.h.in b/include/deal.II/base/config.h.in index 11ab3d1b98..7472b2b8db 100644 --- a/include/deal.II/base/config.h.in +++ b/include/deal.II/base/config.h.in @@ -310,6 +310,7 @@ _Pragma("GCC diagnostic ignored \"-Wnested-anon-types\"") \ _Pragma("GCC diagnostic ignored \"-Wunused-private-field\"") \ _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") \ _Pragma("GCC diagnostic ignored \"-Wunused-but-set-variable\"") \ +_Pragma("GCC diagnostic ignored \"-Wexpansion-to-defined\"") \ _Pragma("GCC diagnostic warning \"-Wpragmas\"") # define DEAL_II_ENABLE_EXTRA_DIAGNOSTICS \