My Project
Unused.hpp
Go to the documentation of this file.
1 // -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 // vi: set et ts=4 sw=4 sts=4:
3 /*
4  This file is part of the Open Porous Media project (OPM).
5 
6  OPM is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  OPM is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with OPM. If not, see <http://www.gnu.org/licenses/>.
18 */
26 #ifndef OPM_UNUSED_HH
27 #define OPM_UNUSED_HH
28 
29 #ifndef HAS_ATTRIBUTE_UNUSED
30 #define OPM_UNUSED
31 #else
32 #define OPM_UNUSED __attribute__((unused))
33 #endif
34 
35 #ifdef NDEBUG
36 #define OPM_DEBUG_UNUSED
37 #define OPM_OPTIM_UNUSED OPM_UNUSED
38 #else
39 #define OPM_DEBUG_UNUSED OPM_UNUSED
40 #define OPM_OPTIM_UNUSED
41 #endif
42 
43 #ifdef HAVE_MPI
44 #define OPM_UNUSED_NOMPI
45 #else
46 #define OPM_UNUSED_NOMPI OPM_UNUSED
47 #endif
48 
49 #endif