]> https://gitweb.dealii.org/ - dealii.git/commitdiff
disable clangs expansion-to-defined warning 3706/head
authorTimo Heister <timo.heister@gmail.com>
Sat, 24 Dec 2016 08:09:25 +0000 (09:09 +0100)
committerTimo Heister <timo.heister@gmail.com>
Sat, 24 Dec 2016 08:09:25 +0000 (09:09 +0100)
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

index 11ab3d1b98a3fb305caf68f9b37144f0f293ef11..7472b2b8db887dd333dbf68750c9db69fa98248f 100644 (file)
@@ -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                       \

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.