From: alegrand Date: Thu, 23 Feb 2006 11:46:57 +0000 (+0000) Subject: g++ needs love... X-Git-Tag: v3.3~3424 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/af838bb5dfd9631a1b3deae1d9eaaf36f0e4ecfc?ds=sidebyside g++ needs love... git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1934 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/include/xbt/ex.h b/include/xbt/ex.h index c2d2cacca4..c2de673bc6 100644 --- a/include/xbt/ex.h +++ b/include/xbt/ex.h @@ -258,7 +258,7 @@ typedef struct { (ctx)->ctx_mctx = NULL; \ (ctx)->ctx_caught = 0; \ (ctx)->ctx_ex.msg = NULL; \ - (ctx)->ctx_ex.category = 0; \ + (ctx)->ctx_ex.category = unknown_error; \ (ctx)->ctx_ex.value = 0; \ (ctx)->ctx_ex.host = NULL; \ (ctx)->ctx_ex.procname = NULL; \ @@ -369,7 +369,7 @@ extern void __xbt_ex_terminate_default(xbt_ex_t *e); do { /* change this sequence into one block */ \ /* build the exception */ \ __xbt_ex_ctx()->ctx_ex.msg = (m); \ - __xbt_ex_ctx()->ctx_ex.category = (c); \ + __xbt_ex_ctx()->ctx_ex.category = (xbt_errcat_t)(c); \ __xbt_ex_ctx()->ctx_ex.value = (v); \ __xbt_ex_ctx()->ctx_ex.host = (char*)NULL; \ __xbt_ex_ctx()->ctx_ex.procname = strdup(xbt_procname()); \