Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
This useless test makes a warning when assertions are disabled
authorChristophe Thiéry <christopho128@gmail.com>
Wed, 2 Nov 2011 14:17:43 +0000 (15:17 +0100)
committerChristophe Thiéry <christopho128@gmail.com>
Wed, 2 Nov 2011 14:17:43 +0000 (15:17 +0100)
src/simix/smx_context_sysv.c

index f57d5a9..a6fef0d 100644 (file)
@@ -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) {
 
      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;
 
 
     context->uc.uc_link = NULL;