Skip to content

Commit

Permalink
Merge pull request #315 from ROCmSoftwarePlatform/roblemos/cppcheck
Browse files Browse the repository at this point in the history
Modifications for cppcheck
  • Loading branch information
RobsonRLemos authored Jul 28, 2023
2 parents e646b41 + 7a051b4 commit 71f7a9a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/test_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ void test_future_value_retrieval(Future&& f, decltype(f.extract()) &return_value
auto const r2 = f.extract();

ASSERT_THROW(
auto x = f.extract();
auto x = f.extract(); // cppcheck-suppress unknownMacro
THRUST_UNUSED_VAR(x)
, thrust::event_error
);
Expand Down
2 changes: 1 addition & 1 deletion thrust/detail/preprocessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
#define THRUST_PP_CAT2_IMPL0(a, b) THRUST_PP_CAT2_IMPL1(~, a ## b)
#define THRUST_PP_CAT2_IMPL1(p, res) res
#else
#define THRUST_PP_CAT2_IMPL0(a, b) a ## b
#define THRUST_PP_CAT2_IMPL0(a, b) a ## b // cppcheck-suppress preprocessorErrorDirective
#endif

#define THRUST_PP_CAT3(a, b, c) \
Expand Down
3 changes: 2 additions & 1 deletion thrust/system/cuda/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@
#endif

// Make sure the CUB namespace has been declared using the modern macros:
CUB_NAMESPACE_BEGIN

CUB_NAMESPACE_BEGIN // cppcheck-suppress unknownMacro
CUB_NAMESPACE_END

#else // THRUST_IGNORE_CUB_VERSION_CHECK
Expand Down

0 comments on commit 71f7a9a

Please sign in to comment.