int id = -1;
char mailbox[80];
msg_comm_t res_irecv;
- int read = sscanf(argv[1], "%d", &id);
+ int read;
+ read = sscanf(argv[1], "%d", &id);
xbt_assert1(read, "Invalid argument %s\n", argv[1]);
MSG_process_sleep(10);
sprintf(mailbox, "receiver-%d", id);
int tasks = atof(argv[2]);
m_task_t *task = xbt_new(m_task_t, tasks);
- int read = sscanf(argv[1], "%d", &id);
+ int read;
+ read = sscanf(argv[1], "%d", &id);
xbt_assert1(read, "Invalid argument %s\n", argv[1]);
sprintf(mailbox, "receiver-%d", id);
MSG_process_sleep(10);
int host_list_size;
double *computation_duration = NULL;
double *communication_table = NULL;
- double communication_amount;
- double computation_amount;
+ double communication_amount = 0;
+ double computation_amount = 0;
double execution_time;
int host_list_size;
double *computation_duration = NULL;
double *communication_table = NULL;
- double communication_amount;
+ double communication_amount = 0;
double redistribution_time;
void STag_dax__adag(void)
{
- double version = dax_parse_double(A_dax__adag_version);
+ double version;
+ version = dax_parse_double(A_dax__adag_version);
xbt_assert1((version == 2.1),
"Expected version 2.1 in <adag> tag, got %f. Fix the parser or your file",
void smx_ctx_sysv_suspend(smx_context_t context)
{
smx_current_context = (smx_context_t)maestro_context;
- int rv = swapcontext(&((smx_ctx_sysv_t) context)->uc, &((smx_ctx_sysv_t)context)->old_uc);
+ int rv;
+ rv = swapcontext(&((smx_ctx_sysv_t) context)->uc, &((smx_ctx_sysv_t)context)->old_uc);
xbt_assert0((rv == 0), "Context swapping failure");
}
void smx_ctx_sysv_resume(smx_context_t context)
{
smx_current_context = context;
- int rv = swapcontext(&((smx_ctx_sysv_t)context)->old_uc, &((smx_ctx_sysv_t) context)->uc);
+ int rv;
+ rv = swapcontext(&((smx_ctx_sysv_t)context)->old_uc, &((smx_ctx_sysv_t) context)->uc);
xbt_assert0((rv == 0), "Context swapping failure");
}
{
smx_context_t context = process->context;
smx_current_context = (smx_context_t)context;
- int rv = swapcontext(&((smx_ctx_sysv_t)context)->old_uc, &((smx_ctx_sysv_t) context)->uc);
+ int rv;
+ rv = swapcontext(&((smx_ctx_sysv_t)context)->old_uc, &((smx_ctx_sysv_t) context)->uc);
smx_current_context = (smx_context_t)maestro_context;
xbt_assert0((rv == 0), "Context swapping failure");
}
xbt_assert2(0, "Model '%s' is invalid! Valid models are: %s.", name,
name_list);
+ return -1;
}
double generic_maxmin_share_resources(xbt_swag_t running_actions,
static void generic_src_dst_check(routing_component_t rc, const char *src,
const char *dst)
{
-
+ #ifndef NDEBUG
routing_component_t src_as = ((network_element_info_t)
xbt_dict_get_or_null
(global_routing->where_network_elements,
xbt_assert2(rc == dst_as,
"The routing component of src and dst is not the same as the network elements belong (%s==%s)",
rc->name, dst_as->name);
+#endif
}
static void routing_parse_Sconfig(void)