-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable stringop-overflow GCC warning temporarily.
See: pmodels/mpich#5687
- Loading branch information
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2525,8 +2525,21 @@ t8_cmesh_partition_given (t8_cmesh_t cmesh, const struct t8_cmesh *cmesh_from, | |
t8_cmesh_partition_recvloop (cmesh, cmesh_from, tree_offset, my_buffer, | ||
my_buffer_bytes, comm, fr, lr); | ||
if (num_send_mpi > 0) { | ||
/* The newer GCC compiler warn when using specific | ||
* MPI calls, this behavious is known by the MPI community | ||
* and will get fixed in future versions: https://github.com/pmodels/mpich/issues/5687 | ||
* It is safe to ignore the warning, and since our CI requires | ||
* runs with -Werror to pass, we need to disable the warning | ||
* temporarily. */ | ||
#ifdef __GNUC__ | ||
#ifndef __clang__ | ||
#pragma GCC diagnostic push | ||
#pragma GCC diagnostic ignored "-Wstringop-overflow" | ||
mpiret = sc_MPI_Waitall (num_request_alloc, requests, | ||
sc_MPI_STATUSES_IGNORE); | ||
#pragma GCC diagnostic push | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
holke
Author
Collaborator
|
||
#endif | ||
#endif | ||
SC_CHECK_MPI (mpiret); | ||
} | ||
|
||
|
Should this not be GCC diagnostic pop?