Skip to content

Commit

Permalink
Silence false gcc warning
Browse files Browse the repository at this point in the history
gcc has a warning about potential compatibility issues with pre ISO C++ code. There is no danger in us compiling in that mode so silence this warning
  • Loading branch information
miscco committed Nov 17, 2023
1 parent 6acae3c commit 8fcd896
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/rmm/mr/device/pool_memory_resource.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,18 @@ struct maybe_remove_property<PoolResource,
Upstream,
Property,
cuda::std::enable_if_t<!cuda::has_property<Upstream, Property>>> {
#ifdef __GNUC__ // GCC has warns about compatibility issues with pre ISO C++ code
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wnon-template-friend"
#endif // __GNUC__
/**
* @brief Explicit removal of the friend function so we do not pretend to provide device
* accessible memory
*/
friend void get_property(const PoolResource&, Property) = delete;
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
};
} // namespace detail

Expand Down

0 comments on commit 8fcd896

Please sign in to comment.