From 08fe34878b068bdf70992a158782950460d1ed0b Mon Sep 17 00:00:00 2001 From: Lei Qiao Date: Tue, 12 May 2015 19:27:59 -0500 Subject: [PATCH] silence warning triggered by trilinos --- examples/step-33/step-33.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/examples/step-33/step-33.cc b/examples/step-33/step-33.cc index 991cb80db0..8b9004ad20 100644 --- a/examples/step-33/step-33.cc +++ b/examples/step-33/step-33.cc @@ -69,8 +69,13 @@ // Sacado is the automatic differentiation package within Trilinos, which is // used to find the Jacobian for a fully implicit Newton iteration: +// Trilinos::Sacado (at least until version 11.10.2) package will trigger +// warnings when compiling this file. Since we are not responsible for this, +// we just suppress the warning by wrapping the #include +// directive into a pair of macros that simply suppress these warnings: +DEAL_II_DISABLE_EXTRA_DIAGNOSTICS #include - +DEAL_II_ENABLE_EXTRA_DIAGNOSTICS // And this again is C++: #include -- 2.39.5