From 784b2216493731d44e66bb2d4af01353732a33fc Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Sat, 24 Dec 2016 09:09:25 +0100 Subject: [PATCH] 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. --- include/deal.II/base/config.h.in | 1 + 1 file changed, 1 insertion(+) 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 \ -- 2.39.5