A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This structure was not necessary
[simgrid.git]
/
src
/
xbt
/
dict.c
diff --git
a/src/xbt/dict.c
b/src/xbt/dict.c
index
5bf48fa
..
d591e01
100644
(file)
--- a/
src/xbt/dict.c
+++ b/
src/xbt/dict.c
@@
-941,7
+941,8
@@
static void search_not_found(xbt_dict_t head, const char *data)
data = xbt_dict_get(head, data);
THROWF(unknown_error, 0,
"Found something which shouldn't be there (%s)", data);
data = xbt_dict_get(head, data);
THROWF(unknown_error, 0,
"Found something which shouldn't be there (%s)", data);
- } CATCH(e) {
+ }
+ CATCH(e) {
if (e.category != not_found_error)
xbt_test_exception(e);
xbt_ex_free(e);
if (e.category != not_found_error)
xbt_test_exception(e);
xbt_ex_free(e);
@@
-974,7
+975,8
@@
static void count(xbt_dict_t dict, int length)
static void count_check_get_key(xbt_dict_t dict, int length)
{
xbt_dict_cursor_t cursor;
static void count_check_get_key(xbt_dict_t dict, int length)
{
xbt_dict_cursor_t cursor;
- char *key, *key2;
+ char *key;
+ _XBT_GNUC_UNUSED char *key2;
void *data;
int effective = 0;
void *data;
int effective = 0;
@@
-1014,7
+1016,8
@@
XBT_TEST_UNIT("basic", test_dict_basic, "Basic usage: change, retrieve, traverse
traverse(head);
TRY {
debuged_remove(head, "12346");
traverse(head);
TRY {
debuged_remove(head, "12346");
- } CATCH(e) {
+ }
+ CATCH(e) {
if (e.category != not_found_error)
xbt_test_exception(e);
xbt_ex_free(e);
if (e.category != not_found_error)
xbt_test_exception(e);
xbt_ex_free(e);