Skip to content

Commit

Permalink
Supress warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
acezen committed Apr 18, 2023
1 parent 1c34e8a commit 44127c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cpp/src/filesystem.cc
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ template <typename T>
Status FileSystem::WriteValueToFile(const T& value,
const std::string& path) const noexcept {
// try to create the directory, oss filesystem may not support this, ignore
arrow_fs_->CreateDir(path.substr(0, path.find_last_of("/")));
ARROW_UNUSED(arrow_fs_->CreateDir(path.substr(0, path.find_last_of("/"))));
GAR_RETURN_ON_ARROW_ERROR_AND_ASSIGN(auto ofstream,
arrow_fs_->OpenOutputStream(path));
RETURN_NOT_ARROW_OK(ofstream->Write(&value, sizeof(T)));
Expand Down
8 changes: 4 additions & 4 deletions cpp/test/test_graph.cc
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ TEST_CASE("test_edges_collection", "[Slow]") {
auto& edges = std::get<GAR_NAMESPACE::EdgesCollection<
GAR_NAMESPACE::AdjListType::ordered_by_source>>(expect.value());
auto end = edges.end();
GAR_NAMESPACE::IdType count = 0;
size_t count = 0;
for (auto it = edges.begin(); it != end; ++it) {
// access data through iterator directly
std::cout << "src=" << it.source() << ", dst=" << it.destination()
Expand All @@ -95,7 +95,7 @@ TEST_CASE("test_edges_collection", "[Slow]") {
auto& edges1 = std::get<GAR_NAMESPACE::EdgesCollection<
GAR_NAMESPACE::AdjListType::ordered_by_dest>>(expect1.value());
auto end1 = edges1.end();
GAR_NAMESPACE::IdType count1 = 0;
size_t count1 = 0;
for (auto it = edges1.begin(); it != end1; ++it) {
count1++;
}
Expand All @@ -110,7 +110,7 @@ TEST_CASE("test_edges_collection", "[Slow]") {
auto& edges2 = std::get<GAR_NAMESPACE::EdgesCollection<
GAR_NAMESPACE::AdjListType::ordered_by_source>>(expect2.value());
auto end2 = edges2.end();
GAR_NAMESPACE::IdType count2 = 0;
size_t count2 = 0;
for (auto it = edges2.begin(); it != end2; ++it) {
auto edge = *it;
std::cout << "src=" << edge.source() << ", dst=" << edge.destination()
Expand All @@ -128,7 +128,7 @@ TEST_CASE("test_edges_collection", "[Slow]") {
auto& edges3 = std::get<GAR_NAMESPACE::EdgesCollection<
GAR_NAMESPACE::AdjListType::unordered_by_source>>(expect3.value());
auto end3 = edges3.end();
GAR_NAMESPACE::IdType count3 = 0;
size_t count3 = 0;
for (auto it = edges3.begin(); it != end3; ++it) {
count3++;
}
Expand Down

0 comments on commit 44127c7

Please sign in to comment.