Commit c1872f15 authored by Antonio Cervone's avatar Antonio Cervone
Browse files

remove all pragmas to not generate warnings.

the pragmas are no longer needed since external library are now included
using the -isystem (or -i) flag that already disables all of them.
parent e6d2241b
......@@ -40,9 +40,6 @@
night execution of the test inside the testsuite.
*/
// Tell the compiler to ignore specific kind of warnings:
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include <Epetra_ConfigDefs.h>
#ifdef EPETRA_MPI
......@@ -52,10 +49,6 @@
#include <Epetra_SerialComm.h>
#endif
//Tell the compiler to restore the warning previously silented
#pragma GCC diagnostic warning "-Wunused-variable"
#pragma GCC diagnostic warning "-Wunused-parameter"
#include <lifev/core/LifeV.hpp>
LifeV::AboutData
......
......@@ -37,9 +37,6 @@
#ifndef BCInterfaceDefinitions_H
#define BCInterfaceDefinitions_H 1
// Tell the compiler to ignore specific kind of warnings:
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wunused-parameter"
// STL classes
#include <sstream>
......@@ -50,9 +47,6 @@
#include <boost/shared_ptr.hpp>
#include <boost/algorithm/string.hpp>
// Tell the compiler to restore the warning previously silented
#pragma GCC diagnostic warning "-Wunused-variable"
#pragma GCC diagnostic warning "-Wunused-parameter"
// LifeV classes
#include <lifev/core/LifeV.hpp>
......
......@@ -100,15 +100,11 @@
#include <map>
#include <vector>
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include <boost/shared_ptr.hpp>
#include <boost/numeric/ublas/vector.hpp>
#include <boost/function.hpp>
#pragma GCC diagnostic warning "-Wunused-variable"
#pragma GCC diagnostic warning "-Wunused-parameter"
// deprecated attribute for LifeV functions
// the macro is needed to avoid problems with compilers other than gcc
......
......@@ -41,12 +41,8 @@
#define COMPOSEDPRECONDITIONER_HPP
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include <Epetra_Operator.h>
#include <Epetra_MultiVector.h>
#pragma GCC diagnostic warning "-Wunused-variable"
#pragma GCC diagnostic warning "-Wunused-parameter"
#include <lifev/core/LifeV.hpp>
#include <lifev/core/filter/GetPot.hpp>
......
......@@ -29,16 +29,12 @@
#ifdef HAVE_TRILINOS_ANASAZI
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include <string>
#include <Teuchos_RefCountPtrDecl.hpp>
#include <Teuchos_RCPBoostSharedPtrConversions.hpp>
#pragma GCC diagnostic warning "-Wunused-variable"
#pragma GCC diagnostic warning "-Wunused-parameter"
// ===================================================
//! Constructors & Destructors
......
......@@ -44,8 +44,6 @@
#ifndef EIGENSOLVER_HPP
#define EIGENSOLVER_HPP
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include <Epetra_MultiVector.h>
#include <Epetra_SerialDenseVector.h>
......@@ -64,8 +62,6 @@
#include <AnasaziLOBPCGSolMgr.hpp>
#include <AnasaziEpetraAdapter.hpp>
#pragma GCC diagnostic warning "-Wunused-variable"
#pragma GCC diagnostic warning "-Wunused-parameter"
#include <lifev/core/LifeV.hpp>
......
......@@ -40,9 +40,6 @@
#include <iomanip>
// Tell the compiler to ignore specific kind of warnings:
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include <Epetra_ConfigDefs.h>
#ifdef EPETRA_MPI
......@@ -69,9 +66,6 @@
#include <Teuchos_ParameterList.hpp>
// Tell the compiler to ignore specific kind of warnings:
#pragma GCC diagnostic warning "-Wunused-variable"
#pragma GCC diagnostic warning "-Wunused-parameter"
#include <lifev/core/LifeV.hpp>
......
......@@ -39,15 +39,9 @@
#ifndef NonLinearAitken_H
#define NonLinearAitken_H
// Tell the compiler to ignore specific kind of warnings:
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include <boost/array.hpp>
// Tell the compiler to restore the warning previously silented
#pragma GCC diagnostic warning "-Wunused-variable"
#pragma GCC diagnostic warning "-Wunused-parameter"
#include <lifev/core/LifeV.hpp>
#include <lifev/core/util/LifeDebug.hpp>
......
......@@ -39,15 +39,9 @@
#define _EPETRAPRECONDITIONER_HPP_
// Tell the compiler to ignore specific kind of warnings:
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include <Teuchos_ParameterList.hpp>
// Tell the compiler to ignore specific kind of warnings:
#pragma GCC diagnostic warning "-Wunused-variable"
#pragma GCC diagnostic warning "-Wunused-parameter"
#include <lifev/core/LifeV.hpp>
......
......@@ -39,9 +39,6 @@
#define _IFPACKPRECONDITIONER_HPP_
// Tell the compiler to ignore specific kind of warnings:
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include <Ifpack_ConfigDefs.h>
#include <Ifpack.h>
......@@ -50,9 +47,6 @@
#include <Ifpack_Amesos.h>
#include <Ifpack_ILU.h>
// Tell the compiler to ignore specific kind of warnings:
#pragma GCC diagnostic warning "-Wunused-variable"
#pragma GCC diagnostic warning "-Wunused-parameter"
#include <lifev/core/LifeV.hpp>
......
......@@ -37,17 +37,11 @@
#ifndef PRECONDITIONERSOLVERBELOS_HPP
#define PRECONDITIONERSOLVERBELOS_HPP 1
// Tell the compiler to ignore specific kind of warnings:
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include <Teuchos_ParameterList.hpp>
#include "Teuchos_XMLParameterListHelpers.hpp"
#include <Epetra_Operator.h>
// Tell the compiler to ignore specific kind of warnings:
#pragma GCC diagnostic warning "-Wunused-variable"
#pragma GCC diagnostic warning "-Wunused-parameter"
#include <lifev/core/array/MapEpetra.hpp>
#include <lifev/core/array/VectorEpetra.hpp>
......
......@@ -38,19 +38,8 @@
#ifndef _MLPRECONDITIONER_HPP_
#define _MLPRECONDITIONER_HPP_
// Tell the compiler to ignore specific kind of warnings:
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wextra"
#include <ml_MultiLevelPreconditioner.h>
// Tell the compiler to ignore specific kind of warnings:
#pragma GCC diagnostic warning "-Wunused-variable"
#pragma GCC diagnostic warning "-Wunused-parameter"
#pragma GCC diagnostic warning "-Wextra"
#include <lifev/core/LifeV.hpp>
#include <lifev/core/filter/GetPot.hpp>
......
......@@ -38,18 +38,12 @@
#ifndef _SolverAmesos_H
#define _SolverAmesos_H
// Tell the compiler to ignore specific kind of warnings:
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include <Amesos.h>
#include <Amesos_BaseSolver.h>
#include <Amesos_ConfigDefs.h>
#include <Teuchos_ParameterList.hpp>
// Tell the compiler to ignore specific kind of warnings:
#pragma GCC diagnostic warning "-Wunused-variable"
#pragma GCC diagnostic warning "-Wunused-parameter"
#include <lifev/core/array/VectorEpetra.hpp>
#include <lifev/core/array/MatrixEpetra.hpp>
......
......@@ -41,9 +41,6 @@
#include <iomanip>
// Tell the compiler to ignore specific kind of warnings:
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include <Epetra_ConfigDefs.h>
#ifdef EPETRA_MPI
......@@ -56,9 +53,6 @@
#include <AztecOO.h>
#include <Teuchos_ParameterList.hpp>
// Tell the compiler to ignore specific kind of warnings:
#pragma GCC diagnostic warning "-Wunused-variable"
#pragma GCC diagnostic warning "-Wunused-parameter"
#include <lifev/core/LifeV.hpp>
......
......@@ -38,15 +38,9 @@
This class manages the distribution of elements of matrices or vectors on a parallel machine
*/
// Tell the compiler to ignore specific kind of warnings:
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include <Epetra_Util.h>
// Tell the compiler to ignore specific kind of warnings:
#pragma GCC diagnostic warning "-Wunused-variable"
#pragma GCC diagnostic warning "-Wunused-parameter"
#include <lifev/core/LifeV.hpp>
#include <lifev/core/array/MapEpetra.hpp>
......
......@@ -41,18 +41,12 @@
#ifndef _EPETRAMAP_
#define _EPETRAMAP_
// Tell the compiler to ignore specific kind of warnings:
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include <Epetra_Map.h>
#include <Epetra_Export.h>
#include <Epetra_Import.h>
#include <Epetra_Comm.h>
// Tell the compiler to ignore specific kind of warnings:
#pragma GCC diagnostic warning "-Wunused-variable"
#pragma GCC diagnostic warning "-Wunused-parameter"
#include <lifev/core/LifeV.hpp>
......
......@@ -8,13 +8,9 @@
#ifndef MATRIXCONTAINER_HPP_
#define MATRIXCONTAINER_HPP_
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include <Teuchos_ParameterList.hpp>
#pragma GCC diagnostic warning "-Wunused-variable"
#pragma GCC diagnostic warning "-Wunused-parameter"
#include <lifev/core/LifeV.hpp>
......
......@@ -41,9 +41,6 @@
#include <lifev/core/LifeV.hpp>
// Tell the compiler to ignore specific kind of warnings:
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include <Epetra_MpiComm.h>
#include <Epetra_FECrsMatrix.h>
......@@ -56,9 +53,6 @@
#include <EpetraExt_HDF5.h>
#endif
// Tell the compiler to ignore specific kind of warnings:
#pragma GCC diagnostic warning "-Wunused-variable"
#pragma GCC diagnostic warning "-Wunused-parameter"
#include <lifev/core/array/VectorEpetra.hpp>
......
......@@ -37,15 +37,9 @@
@date 04-10-2006
*/
// Tell the compiler to ignore specific kind of warnings:
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include <EpetraExt_MultiVectorOut.h>
// Tell the compiler to ignore specific kind of warnings:
#pragma GCC diagnostic warning "-Wunused-variable"
#pragma GCC diagnostic warning "-Wunused-parameter"
#include <lifev/core/LifeV.hpp>
#include <lifev/core/array/VectorEpetra.hpp>
......
......@@ -40,16 +40,10 @@
#ifndef _EPETRAVECTOR_HPP_
#define _EPETRAVECTOR_HPP_
// Tell the compiler to ignore specific kind of warnings:
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include <Epetra_FEVector.h>
#include <Epetra_Export.h>
// Tell the compiler to ignore specific kind of warnings:
#pragma GCC diagnostic warning "-Wunused-variable"
#pragma GCC diagnostic warning "-Wunused-parameter"
#include <lifev/core/LifeV.hpp>
#include <lifev/core/array/MapEpetra.hpp>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment