Skip to content

Commit

Permalink
Suppress maybe unitialized warnigns found with CTK 12.8
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmaynard committed Jan 29, 2025
1 parent b64b04f commit 197260d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cpp/include/cugraph/edge_src_dst_property.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
#include <optional>
#include <type_traits>

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"

namespace cugraph {

namespace detail {
Expand Down Expand Up @@ -455,7 +458,7 @@ class edge_src_property_t {
std::conditional_t<GraphViewType::is_storage_transposed,
detail::edge_minor_property_t<typename GraphViewType::vertex_type, T>,
detail::edge_major_property_t<typename GraphViewType::vertex_type, T>>
property_;
property_{std::nullopt};

std::optional<std::vector<raft::device_span<typename GraphViewType::vertex_type const>>>
edge_partition_keys_{std::nullopt};
Expand Down Expand Up @@ -547,7 +550,7 @@ class edge_dst_property_t {
std::conditional_t<GraphViewType::is_storage_transposed,
detail::edge_major_property_t<typename GraphViewType::vertex_type, T>,
detail::edge_minor_property_t<typename GraphViewType::vertex_type, T>>
property_;
property_{std::nullopt};

std::optional<std::vector<raft::device_span<typename GraphViewType::vertex_type const>>>
edge_partition_keys_{std::nullopt};
Expand Down Expand Up @@ -625,3 +628,5 @@ auto view_concat(detail::edge_minor_property_view_t<vertex_t, Iters, Types> cons
}

} // namespace cugraph

#pragma GCC diagnostic pop

0 comments on commit 197260d

Please sign in to comment.