Skip to content

Commit bc79c3c

Browse files
committed
errhandler_predefined: remove erroneous assert()
This assert() was added in 13ddcbf (which was a back-ported cherry pick from master: 35438ae), but it is actually exactly the opposite assert that should be there. The assert() is actually superflouous, because the "if" statement resulting in invoking this function is exactly what the assert() should be. Hence, the simplest solution here is just to remove that assert(). This assert() is not present on master: it's only on the v2.x branch. Hence, this is not a cherry-pick from master -- it's a direct PR to the v2.x branch. Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
1 parent fa7384b commit bc79c3c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

ompi/errhandler/errhandler_predefined.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,6 @@ static void backend_fatal_aggregate(char *type,
190190
const char* usable_prefix = unknown_prefix;
191191
const char* usable_err_msg = unknown_error;
192192

193-
int32_t state = ompi_mpi_state;
194-
assert(state < OMPI_MPI_STATE_INIT_COMPLETED ||
195-
state >= OMPI_MPI_STATE_FINALIZE_PAST_COMM_SELF_DESTRUCT);
196-
197193
arg = va_arg(arglist, char*);
198194
va_end(arglist);
199195

0 commit comments

Comments
 (0)