From: Arnaud Giersch Date: Mon, 4 Nov 2013 12:34:20 +0000 (+0100) Subject: Rewrite to avoid compiler warnings about unused variables. X-Git-Tag: v3_10_rc1~5 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/3e4a847beed6640a47ddf93b4d31e33140b42632?hp=bf8359e24a76b18c611363ca2996bf433fe58e81 Rewrite to avoid compiler warnings about unused variables. --- 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,