Commit c682ee6e authored by Michael Kuron's avatar Michael Kuron 💡

Silence arm32 warnings

parent 43605824
Pipeline #3491 passed with stages
in 63 minutes and 14 seconds
......@@ -391,6 +391,9 @@ if(WARNINGS_ARE_ERRORS)
endif()
endif(WARNINGS_ARE_ERRORS)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-sign-compare -Wno-unused-function -Wno-unused-variable")
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_SYSTEM_PROCESSOR MATCHES "arm")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-psabi")
endif()
if (NOT CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND NOT CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
# G++ and Intel don't know this flag
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-private-field")
......
......@@ -224,7 +224,7 @@ void prepare_send_buffer(GhostCommunication *gc, int data_parts) {
if (insert - s_buffer != n_s_buffer) {
fprintf(stderr,
"%d: INTERNAL ERROR: send buffer size %d "
"differs from what I put in (%ld)\n",
"differs from what I put in (%td)\n",
this_node, n_s_buffer, insert - s_buffer);
errexit();
}
......@@ -349,13 +349,13 @@ void put_recv_buffer(GhostCommunication *gc, int data_parts) {
if (retrieve - r_buffer != n_r_buffer) {
fprintf(stderr,
"%d: recv buffer size %d differs "
"from what I read out (%ld)\n",
"from what I read out (%td)\n",
this_node, n_r_buffer, retrieve - r_buffer);
errexit();
}
if (bond_retrieve != r_bondbuffer.end()) {
fprintf(stderr,
"%d: recv bond buffer was not used up, %ld elements remain\n",
"%d: recv bond buffer was not used up, %td elements remain\n",
this_node, r_bondbuffer.end() - bond_retrieve);
errexit();
}
......@@ -381,7 +381,7 @@ void add_forces_from_recv_buffer(GhostCommunication *gc) {
if (retrieve - r_buffer != n_r_buffer) {
fprintf(stderr,
"%d: recv buffer size %d differs "
"from what I put in %ld\n",
"from what I put in %td\n",
this_node, n_r_buffer, retrieve - r_buffer);
errexit();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment