Skip to content

Commit

Permalink
Minor fixes due to compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
fkutzner committed Apr 13, 2024
1 parent 454e043 commit 2b55fbe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ else()
-Wall
-Wextra
-Wunused
-Warray-bounds
-Wunused-private-field
-pedantic
)
endif()
Expand Down
4 changes: 2 additions & 2 deletions examples/04_custom_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class own_clause {

private:
std::vector<int32_t> m_literals;
int m_additional_attrs = 0;
// ... additional members ...
};


Expand All @@ -35,7 +35,7 @@ class clause {

private:
std::vector<int32_t> m_literals;
int m_additional_attrs = 0; // placeholder for actual data
// ... additional members ...
};


Expand Down
3 changes: 2 additions & 1 deletion include/ipasir2cpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,8 @@ namespace detail {
as_contiguous_int32s(Iter start, Iter stop, std::vector<int32_t>& buffer)
{
if (start == stop) {
buffer = {0};
buffer.clear();
buffer.push_back(0);
return {buffer.data(), 0};
}

Expand Down

0 comments on commit 2b55fbe

Please sign in to comment.