This library contains code that extends and simplifies different operations
for C++ language based programs
Revisión | a35ebe7444114795c55fe2048c488c1d0a4126c0 (tree) |
---|---|
Tiempo | 2020-01-10 07:02:20 |
Autor | Sergey Gusarov |
Commiter | Sergey Gusarov |
Fixed tests with clang
@@ -1,3 +1,3 @@ | ||
1 | -e94bf852c66d71683a0862667630d82220bcdb9b libctools | |
1 | +0b3a944cef0973f1d378a4b5316cae44963c28af libctools | |
2 | 2 | 06beda7c7cf3133dc256db280a0feb22b129f49f pyrepo |
3 | 3 | 5e7fd50e17b6edf1cadff973d0ec68966cf3265e tests/googletest |
@@ -13,6 +13,7 @@ | ||
13 | 13 | #include <cpptools/enums/runtime_helper.hpp> |
14 | 14 | |
15 | 15 | #include <ctools/predef/cxx11_attributes.h> |
16 | +#include <ctools/unused.h> | |
16 | 17 | |
17 | 18 | |
18 | 19 | #define TEST_CASE_NAME enums_runtime_helper |
@@ -83,4 +84,6 @@ | ||
83 | 84 | }; |
84 | 85 | |
85 | 86 | TestHelper testHelper; |
87 | + | |
88 | + CT_UNUSED(testHelper); | |
86 | 89 | } |
@@ -18,8 +18,10 @@ | ||
18 | 18 | |
19 | 19 | TEST(TEST_CASE_NAME, compile) |
20 | 20 | { |
21 | +#if defined (CPT_THREADS_KILL_AVAILABLE) | |
21 | 22 | std::thread thread; |
22 | 23 | |
23 | 24 | cpptools::threads::kill(thread.native_handle()); |
24 | 25 | cpptools::threads::exceptionlessKill<cpptools::exceptions::Printer>(thread.native_handle()); |
26 | +#endif | |
25 | 27 | } |