XBT_LOG_NEW_DEFAULT_CATEGORY(test,"this test");
-#define BUFFSIZE 204800
-#define TESTSIZE 100
+constexpr int BUFFSIZE = 204800;
+constexpr int TESTSIZE = 100;
+
#define size_of_block(i) (((i % 50)+1)* 100)
static void check_block(const void* s, int c, int n)
mfree(heapA, pointers[i]);
try {
mfree(heapA, pointers[i]);
- } catch(xbt_ex& e) {
+ } catch (const xbt_ex&) {
gotit = true;
}
if (not gotit)
bool gotit = false;
try {
mfree(heapA, pointers[i]);
- } catch(xbt_ex& e) {
+ } catch (const xbt_ex&) {
gotit = true;
}
if (not gotit)