From 78f22420f85adfcab545618481f69020e95ce685 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christophe=20Thi=C3=A9ry?= Date: Wed, 2 Nov 2011 15:17:43 +0100 Subject: [PATCH] This useless test makes a warning when assertions are disabled --- src/simix/smx_context_sysv.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/simix/smx_context_sysv.c b/src/simix/smx_context_sysv.c index f57d5a942d..a6fef0dcc6 100644 --- a/src/simix/smx_context_sysv.c +++ b/src/simix/smx_context_sysv.c @@ -125,10 +125,7 @@ smx_ctx_sysv_create_context_sized(size_t size, xbt_main_func_t code, otherwise it is the context for maestro */ if (code) { - int res = getcontext(&(context->uc)); - xbt_assert(res == 0, - "Error in context saving: %d (%s)", errno, - strerror(errno)); + getcontext(&(context->uc)); context->uc.uc_link = NULL; -- 2.20.1