From: Christophe ThiƩry Date: Wed, 2 Nov 2011 14:17:43 +0000 (+0100) Subject: This useless test makes a warning when assertions are disabled X-Git-Tag: exp_20120216~528^2~2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/78f22420f85adfcab545618481f69020e95ce685 This useless test makes a warning when assertions are disabled --- 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;