From 4c506a1e81412766b68c4a2ab989790562ec1ff0 Mon Sep 17 00:00:00 2001 From: schnorr Date: Thu, 15 Apr 2010 10:06:13 +0000 Subject: [PATCH] fix so enable_compile_warnings works nice when enable_tracing is on git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7589 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/instr/interface.c | 2 +- src/instr/surf_instr.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/instr/interface.c b/src/instr/interface.c index daab4a454d..64a2445aa3 100644 --- a/src/instr/interface.c +++ b/src/instr/interface.c @@ -158,7 +158,7 @@ void TRACE_define_type (const char *type, int TRACE_create_category (const char *category, const char *type, const char *parent_category) { - if (!IS_TRACING) return; + if (!IS_TRACING) return 1; //check if type is defined if (!xbt_dict_get_or_null (defined_types, type)) { diff --git a/src/instr/surf_instr.c b/src/instr/surf_instr.c index 6ce676d65d..e1b6990a44 100644 --- a/src/instr/surf_instr.c +++ b/src/instr/surf_instr.c @@ -415,7 +415,6 @@ void TRACE_msg_clean (void) __TRACE_surf_finalize(); xbt_dict_cursor_t cursor = NULL; - unsigned int cursor_ar = 0; char *key, *value; /* get all host from host_containers */ -- 2.20.1