Remove warning pragmas.

They are only available on gcc 4.6 and newer, and clang.
This commit is contained in:
Atgeirr Flø Rasmussen 2014-03-05 08:41:53 +01:00
parent ae0464afe3
commit 85a323e7da

View File

@ -28,13 +28,6 @@
// the deprecated member anyway (in this compilation unit) // the deprecated member anyway (in this compilation unit)
#define DUNE_COMMON_FIELDVECTOR_SIZE_IS_METHOD 1 #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. // TODO: clean up includes.
#include <dune/common/deprecated.hh> #include <dune/common/deprecated.hh>
#include <dune/istl/bvector.hh> #include <dune/istl/bvector.hh>
@ -46,9 +39,6 @@
#include <dune/istl/paamg/amg.hh> #include <dune/istl/paamg/amg.hh>
#include <dune/istl/paamg/kamg.hh> #include <dune/istl/paamg/kamg.hh>
// Reinstate warnings.
#pragma GCC diagnostic pop
#include <stdexcept> #include <stdexcept>
#include <iostream> #include <iostream>