commit | ba065346320c6581ca7aaa85e1e6da2b26135a04 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Mon Jan 30 14:50:08 2017 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Mon Jan 30 14:50:08 2017 +0100 |
tree | 6a8e5f03ea4ac7e29fe79e2a5811d95305e271d7 | |
parent | 147e9ae877a246b50c82cafea96900e130cb9ec4 [diff] |
tests BUGFIX unused macro for tests
diff --git a/tests/config.h.in b/tests/config.h.in index 864de67..2136c1b 100644 --- a/tests/config.h.in +++ b/tests/config.h.in
@@ -12,6 +12,12 @@ * https://opensource.org/licenses/BSD-3-Clause */ +#ifdef __GNUC__ +# define UNUSED(x) UNUSED_ ## x __attribute__((__unused__)) +#else +# define UNUSED(x) UNUSED_ ## x +#endif + #define TESTS_DIR "@CMAKE_SOURCE_DIR@/tests/" @SSH_MACRO@