From 3e4a847beed6640a47ddf93b4d31e33140b42632 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Mon, 4 Nov 2013 13:34:20 +0100 Subject: [PATCH] Rewrite to avoid compiler warnings about unused variables. --- src/simgrid/sg_config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/simgrid/sg_config.c b/src/simgrid/sg_config.c index 58f791d43a..0f88330755 100644 --- a/src/simgrid/sg_config.c +++ b/src/simgrid/sg_config.c @@ -611,12 +611,12 @@ void sg_config_init(int *argc, char **argv) "Context factory to use in SIMIX. Possible values: thread"); const char *dflt_ctx_fact = "thread"; #ifdef CONTEXT_UCONTEXT - strcat(description, ", ucontext"); dflt_ctx_fact = "ucontext"; + strcat(strcat(description, ", "), dflt_ctx_fact); #endif #ifdef HAVE_RAWCTX - strcat(description, ", raw"); dflt_ctx_fact = "raw"; + strcat(strcat(description, ", "), dflt_ctx_fact); #endif strcat(description, "."); xbt_cfg_register(&_sg_cfg_set, "contexts/factory", description, -- 2.20.1