Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Mark global test variable used on GCC.
Browse files Browse the repository at this point in the history
  • Loading branch information
alliepiper committed Dec 11, 2020
1 parent bf68a49 commit b9f6f6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testing/unittest/runtime_static_assert.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ namespace unittest

namespace detail
{
#ifdef __clang__
#if THRUST_HOST_COMPILER == THRUST_HOST_COMPILER_GCC || \
THRUST_HOST_COMPILER == THRUST_HOST_COMPILER_CLANG
__attribute__((used))
#endif
__device__ static static_assert_exception* device_exception = NULL;
Expand Down

0 comments on commit b9f6f6d

Please sign in to comment.