From ce584594d53f8661dcd43714a7c2291b804a46e4 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Thu, 9 Feb 2012 13:10:36 +0100 Subject: [PATCH] XBT_RUNNING_CTX_INITIALIZER: don't list all element of bt[] in initializer. They'll be implicitly initialized to NULL, and the initializer is now independent of XBT_BACKTRACE_SIZE. --- include/xbt/ex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/xbt/ex.h b/include/xbt/ex.h index 446dfc97ec..77b1967708 100644 --- a/include/xbt/ex.h +++ b/include/xbt/ex.h @@ -305,7 +305,7 @@ typedef struct { #define XBT_RUNNING_CTX_INITIALIZER \ { NULL, 0, { /* content */ NULL, unknown_error, 0, \ /* throw point*/ 0,NULL, NULL,0, NULL, 0, NULL,\ - /* backtrace */ 0,NULL,{NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL} } } + /* backtrace */ 0, NULL, /* bt[] */ } } #define XBT_RUNNING_CTX_INITIALIZE(ctx) \ do { \ (ctx)->ctx_mctx = NULL; \ -- 2.20.1