dune-common  2.7.1
unused.hh
Go to the documentation of this file.
1 // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 // vi: set et ts=4 sw=2 sts=2:
3 #ifndef DUNE_COMMON_UNUSED_HH
4 #define DUNE_COMMON_UNUSED_HH
5 
11 #ifndef HAS_ATTRIBUTE_UNUSED
13 
16 #define DUNE_UNUSED
17 #else
18 #define DUNE_UNUSED __attribute__((unused))
19 #endif
20 
22 
25 #define DUNE_UNUSED_PARAMETER(parm) static_cast<void>(parm)
26 #endif