Skip to content
Snippets Groups Projects
Commit 86b973d4 authored by webmanue's avatar webmanue
Browse files

fix compiler warnings

- fixes error in CI
parent f629aeb2
No related branches found
No related tags found
No related merge requests found
Pipeline #103453 failed
......@@ -60,8 +60,9 @@ void resizeIfPossible(std::vector<T> *const container,
}
template <class T, std::size_t Size>
void resizeIfPossible(std::array<T, Size> *const container,
const typename std::array<T, Size>::size_type size) {
void resizeIfPossible(std::array<T, Size> *const container [[maybe_unused]],
const typename std::array<T, Size>::size_type size
[[maybe_unused]]) {
assert(container);
assert(Size == size);
}
......
......@@ -438,7 +438,7 @@ template <class T> std::string toString(const T &t) {
std::stringstream stream;
stream << t;
return stream.str();
};
}
TYPED_TEST(Matrix_Test, writing_to_stream_uses_square_brackets) {
const auto mat = TestFixture::matrix_type::fromList({
......
......@@ -344,7 +344,7 @@ template <class T> std::string toString(const T &t) {
std::stringstream stream;
stream << t;
return stream.str();
};
}
TYPED_TEST(Vector_Test, writing_to_stream_uses_square_brackets) {
const auto vec = TestFixture::vector_type::fromList({3., 4.});
......
......@@ -95,9 +95,6 @@ template <class Policy> struct Assembler_Mock {
const auto replacer = matrix->assemblyView().replace();
if (displacements.unwrap().size() > 0) {
const auto x = displacements(0);
const auto y = displacements(1);
replacer(0, 0) = 2.;
replacer(0, 1) = 0.;
replacer(1, 0) = 0.;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment