XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test,
"Messages specific for this msg example");
XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test,
"Messages specific for this msg example");
static int test(int argc, char *argv[])
{
double computation_amount = 0.0;
double priority = 1.0;
static int test(int argc, char *argv[])
{
double computation_amount = 0.0;
double priority = 1.0;
- int res = sscanf(argv[1], "%lg", &computation_amount);
- xbt_assert1(res, "Invalid argument %s\n", argv[1]);
+ _XBT_GNUC_UNUSED int res = sscanf(argv[1], "%lg", &computation_amount);
+ xbt_assert(res, "Invalid argument %s\n", argv[1]);
XBT_INFO("Hello! Running a task of size %g with priority %g",
computation_amount, priority);
XBT_INFO("Hello! Running a task of size %g with priority %g",
computation_amount, priority);
if (argc < 3) {
printf("Usage: %s platform_file deployment_file\n", argv[0]);
printf("example: %s msg_platform.xml msg_deployment.xml\n", argv[0]);
exit(1);
}
res = test_all(argv[1], argv[2]);
if (argc < 3) {
printf("Usage: %s platform_file deployment_file\n", argv[0]);
printf("example: %s msg_platform.xml msg_deployment.xml\n", argv[0]);
exit(1);
}
res = test_all(argv[1], argv[2]);