From 10beade7f2e5b5b7f318c3847602cc1ddbf09c99 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christophe=20Thi=C3=A9ry?= Date: Thu, 3 Nov 2011 14:32:41 +0100 Subject: [PATCH] Enable clobbered variable warnings again and fix the last one (for me) --- buildtools/Cmake/Flags.cmake | 2 +- src/gras/DataDesc/cbps.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/buildtools/Cmake/Flags.cmake b/buildtools/Cmake/Flags.cmake index 510c77b2ee..51c0ef8d77 100644 --- a/buildtools/Cmake/Flags.cmake +++ b/buildtools/Cmake/Flags.cmake @@ -10,7 +10,7 @@ else(NOT __VISUALC__ AND NOT __BORLANDC__) endif(NOT __VISUALC__ AND NOT __BORLANDC__) if(enable_compile_warnings) - set(warnCFLAGS "-Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings -Wno-clobbered -Wno-unused-function -Wno-unused-parameter -Wno-strict-aliasing -Wno-format-nonliteral -Werror ") + set(warnCFLAGS "-Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings -Werror=clobbered -Wno-unused-function -Wno-unused-parameter -Wno-strict-aliasing -Wno-format-nonliteral -Werror ") endif(enable_compile_warnings) if(COMPILER_C_VERSION_MAJOR_MINOR STRGREATER "4.5") diff --git a/src/gras/DataDesc/cbps.c b/src/gras/DataDesc/cbps.c index 4584b19ea5..b64eb2f10c 100644 --- a/src/gras/DataDesc/cbps.c +++ b/src/gras/DataDesc/cbps.c @@ -94,7 +94,7 @@ gras_cbps_v_push(gras_cbps_t ps, XBT_DEBUG("Create a new variable stack for '%s' into the space", name); varstack = xbt_dynar_new(sizeof(gras_cbps_elm_t *), NULL); - xbt_dict_set(ps->space, varname, (void **) varstack, NULL); + xbt_dict_set(ps->space, name, (void **) varstack, NULL); xbt_ex_free(e); /* leaking, you think? only if you do not close all the openned blocks ;) */ } -- 2.20.1