Suppress warnings from included istl code.

This is done using #pragma GCC and works also in clang.
This commit is contained in:
Atgeirr Flø Rasmussen 2014-03-04 11:31:16 +01:00
parent b40d2e63d0
commit 95a17f847a

View File

@ -28,6 +28,13 @@
// the deprecated member anyway (in this compilation unit)
#define DUNE_COMMON_FIELDVECTOR_SIZE_IS_METHOD 1
// Silence warnings from Dune.
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshadow"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wignored-qualifiers"
#pragma GCC diagnostic ignored "-Wmismatched-tags"
// TODO: clean up includes.
#include <dune/common/deprecated.hh>
#include <dune/istl/bvector.hh>
@ -39,6 +46,9 @@
#include <dune/istl/paamg/amg.hh>
#include <dune/istl/paamg/kamg.hh>
// Reinstate warnings.
#pragma GCC diagnostic pop
#include <stdexcept>
#include <iostream>