File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 22
22
The hook will check the license headers, amend them where possible and abort
23
23
where not possible, showing the commands needed to update the license.
24
24
_ NOT recommended_ The hook can be skipped by passing the ` --no-verify ` option to ` git commit `
25
+ - An ` UNUSED ` preprocessor macro to mark arguments as unused.
26
+ - An ` UNUSED_FUNCTION ` preprocessor macro to mark functions as unused.
25
27
26
28
### Changed
27
29
Original file line number Diff line number Diff line change 41
41
#define attribute(x)
42
42
#endif
43
43
44
+ #ifdef __GNUC__
45
+ # define UNUSED(x) UNUSED_ ## x __attribute__((__unused__))
46
+ #else
47
+ # define UNUSED(x) UNUSED_ ## x
48
+ #endif
49
+
50
+ #ifdef __GNUC__
51
+ # define UNUSED_FUNCTION(x) __attribute__((__unused__)) UNUSED_ ## x
52
+ #else
53
+ # define UNUSED_FUNCTION(x) UNUSED_ ## x
54
+ #endif
55
+
56
+
44
57
#include <boost/current_function.hpp>
45
58
46
59
// Inspired from Eigen EIGEN_DEFAULT_DENSE_INDEX_TYPE
You can’t perform that action at this time.
0 commit comments