X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/62055629456573fcdea59beeccbcceaa13e79c95..a7dc4456f42a853a6294c774ccc9397304732c6e:/src/xbt/ex.c diff --git a/src/xbt/ex.c b/src/xbt/ex.c index 579f63d2d1..4eb0569eca 100644 --- a/src/xbt/ex.c +++ b/src/xbt/ex.c @@ -297,7 +297,7 @@ XBT_TEST_UNIT("value", test_value, "exception value passing") CATCH(ex) { xbt_test_add("exception value passing"); if (ex.category != unknown_error) - xbt_test_fail("category=%d (!= 1)", ex.category); + xbt_test_fail("category=%d (!= 1)", (int)ex.category); if (ex.value != 2) xbt_test_fail("value=%d (!= 2)", ex.value); if (strcmp(ex.msg, "toto")) @@ -309,7 +309,8 @@ XBT_TEST_UNIT("value", test_value, "exception value passing") XBT_TEST_UNIT("variables", test_variables, "variable value preservation") { xbt_ex_t ex; - int r1, r2; + int r1; + int _XBT_GNUC_UNUSED r2; volatile int v1, v2; r1 = r2 = v1 = v2 = 1234;