Bayeux  3.4.1
Core Foundation library for SuperNEMO
compiler_macros.h
Go to the documentation of this file.
1 // Copyright (c) 2016 by Ben Morgan <Ben.Morgan@warwick.ac.uk>
13 // Copyright (c) 2016 by The University of Warwick
14 //
15 // This file is part of datatools.
16 //
17 // datatools is free software: you can redistribute it and/or modify
18 // it under the terms of the GNU General Public License as published by
19 // the Free Software Foundation, either version 3 of the License, or
20 // (at your option) any later version.
21 //
22 // datatools is distributed in the hope that it will be useful,
23 // but WITHOUT ANY WARRANTY; without even the implied warranty of
24 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 // GNU General Public License for more details.
26 //
27 // You should have received a copy of the GNU General Public License
28 // along with datatools. If not, see <http://www.gnu.org/licenses/>.
29 
30 
31 #ifndef DATATOOLS_COMPILER_MACROS_H
32 #define DATATOOLS_COMPILER_MACROS_H
33 
45 #if defined(__clang__) || defined(__GNUC__) || defined(__INTEL_COMPILER)
46 #define DT_UNUSED(X) \
47  X __attribute__((unused))
48 #else
49 #define DT_UNUSED(X) \
50  X
51 #endif
52 
53 #endif // DATATOOLS_COMPILER_MACROS_H
54